if none of the authors in a query (that have authors) are irrelevant, invalidate the query.

This commit is contained in:
fiatjaf 2023-11-12 09:30:25 -03:00
parent e2481aae09
commit 52cd98b3b3
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -78,5 +78,9 @@ func removeAuthorsNotWhitelisted(ctx context.Context, filter *nostr.Filter) {
}
}
filter.Authors = newAuthors
if len(newAuthors) == 0 {
filter.Limit = 0
}
}
}