fix outbox

This commit is contained in:
2023-11-30 19:22:00 +07:00
parent 092cf49227
commit 217ac490b1
3 changed files with 47 additions and 45 deletions

View File

@@ -76,7 +76,9 @@ export const NDKInstance = () => {
// update account's metadata
if (db.account) {
const user = instance.getUser({ pubkey: db.account.pubkey });
db.account.contacts = [...(await user.follows())].map((user) => user.pubkey);
db.account.contacts = [...(await user.follows(undefined, outbox))].map(
(user) => user.pubkey
);
db.account.relayList = await user.relayList();
// prefetch data