mirror of
https://github.com/bitvora/wot-relay.git
synced 2025-06-21 23:15:11 +00:00
remove initial huge wave of notes
This commit is contained in:
parent
f2efc9199b
commit
a07829c492
3
main.go
3
main.go
@ -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,
|
||||
}}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user