web: fetch even more unseen profiles from events
This commit is contained in:
parent
83ca480d31
commit
3cb6a2f7b3
2 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue