damus.io

damus.io website
git clone git://jb55.com/damus.io
Log | Files | Refs | README | LICENSE

commit 3cb6a2f7b3865059d0d8f37d4387d30e22357a72
parent 83ca480d3194e6911e811e7893567465fe00463d
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 12 Nov 2022 14:29:33 -0800

web: fetch even more unseen profiles from events

Diffstat:
Mweb/index.html | 2+-
Mweb/js/damus.js | 6++++++
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/web/index.html b/web/index.html @@ -11,7 +11,7 @@ <script defer src="js/noble-secp256k1.js?v=1"></script> <script defer src="js/bech32.js?v=1"></script> <script defer src="js/nostr.js?v=6"></script> - <script defer src="js/damus.js?v=68"></script> + <script defer src="js/damus.js?v=69"></script> </head> <body> <script> diff --git a/web/js/damus.js b/web/js/damus.js @@ -547,6 +547,12 @@ function handle_comments_loaded(profiles_id, model, relay) { const pubkeys = model.events.reduce((s, ev) => { s.add(ev.pubkey) + for (const tag of ev.tags) { + if (tag.length >= 2 && tag[0] === "p") { + if (!model.profile_events[tag[1]]) + s.add(tag[1]) + } + } return s }, new Set()) const authors = Array.from(pubkeys)