From af62fa2ddd2c647596916b3a94207b854724d0a7 Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Tue, 10 Oct 2023 14:57:38 +0300 Subject: [PATCH] subscribe to only kinds 0,3 from followed users --- src/js/nostr/SocialNetwork.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/nostr/SocialNetwork.ts b/src/js/nostr/SocialNetwork.ts index 140811bf2..f9c634bee 100644 --- a/src/js/nostr/SocialNetwork.ts +++ b/src/js/nostr/SocialNetwork.ts @@ -144,7 +144,7 @@ export default { if (this.followedByUser.get(myId)?.has(follower)) { if (!PubSub.subscribedAuthors.has(STR(followedUser))) { setTimeout(() => { - PubSub.subscribe({ authors: [STR(followedUser)] }, undefined, true); + PubSub.subscribe({ authors: [STR(followedUser)], kinds: [0, 3] }, undefined, true); }, 0); } }