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
|
@ -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>
|
||||
|
|
|
@ -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