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