diff --git a/nip77/nip77.go b/nip77/nip77.go index dc584f0..5196cf3 100644 --- a/nip77/nip77.go +++ b/nip77/nip77.go @@ -161,7 +161,9 @@ func SyncEventsFromIDs(ctx context.Context, dir Direction) { } } - for evt := range dir.From.QueryEvents(nostr.Filter{IDs: batch}) { - dir.To.Publish(ctx, evt) + if len(batch) > 0 { + for evt := range dir.From.QueryEvents(nostr.Filter{IDs: batch}) { + dir.To.Publish(ctx, evt) + } } }