From 19069c041745251040827b133fa948adf749d6a8 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Tue, 17 Sep 2024 14:37:04 -0300 Subject: [PATCH] refactor: return set in a different way --- src/queries.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queries.ts b/src/queries.ts index 9c188176..3ca805a8 100644 --- a/src/queries.ts +++ b/src/queries.ts @@ -65,7 +65,7 @@ async function getFollowedPubkeys(pubkey: string, signal?: AbortSignal): Promise /** Get pubkeys the user follows, including the user's own pubkey. */ async function getFeedPubkeys(pubkey: string): Promise> { const authors = await getFollowedPubkeys(pubkey); - return new Set([...authors, pubkey]); + return authors.add(pubkey); } async function getAncestors(store: NStore, event: NostrEvent, result: NostrEvent[] = []): Promise {