remove initial huge wave of notes

This commit is contained in:
Barry Deen 2025-06-15 23:04:18 -04:00
parent f2efc9199b
commit a07829c492

View File

@ -584,6 +584,7 @@ func archiveTrustedNotes(ctx context.Context, relay *khatru.Relay) {
go refreshProfiles(ctx) go refreshProfiles(ctx)
var filters []nostr.Filter var filters []nostr.Filter
since := nostr.Now()
if config.ArchiveReactions { if config.ArchiveReactions {
filters = []nostr.Filter{{ filters = []nostr.Filter{{
Kinds: []int{ Kinds: []int{
@ -599,6 +600,7 @@ func archiveTrustedNotes(ctx context.Context, relay *khatru.Relay) {
nostr.KindZap, nostr.KindZap,
nostr.KindTextNote, nostr.KindTextNote,
}, },
Since: &since,
}} }}
} else { } else {
filters = []nostr.Filter{{ filters = []nostr.Filter{{
@ -614,6 +616,7 @@ func archiveTrustedNotes(ctx context.Context, relay *khatru.Relay) {
nostr.KindZap, nostr.KindZap,
nostr.KindTextNote, nostr.KindTextNote,
}, },
Since: &since,
}} }}
} }