Skip to content

Commit 6e9adab

Browse files
committed
Enforce WoT when fetching the full thread
1 parent 5917e45 commit 6e9adab

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,11 @@ func fetchConversation(event nostr.Event) {
367367
}
368368

369369
for ev := range pool.SubMany(timeout, append([]string{eventRelay}, seedRelays...), filters) {
370-
saveEvent(ctx, *ev.Event)
371-
go fetchQuotedEvents(*ev.Event)
372-
go processBlossomBackup(*ev.Event)
370+
if belongsToWotNetwork(*ev.Event) {
371+
saveEvent(ctx, *ev.Event)
372+
go fetchQuotedEvents(*ev.Event)
373+
go processBlossomBackup(*ev.Event)
374+
}
373375
}
374376
}()
375377

0 commit comments

Comments
 (0)