mirror of
https://github.com/github-tijlxyz/khatru-pyramid.git
synced 2025-06-19 14:05:08 +00:00
if none of the authors in a query (that have authors) are irrelevant, invalidate the query.
This commit is contained in:
parent
e2481aae09
commit
52cd98b3b3
4
relay.go
4
relay.go
@ -78,5 +78,9 @@ func removeAuthorsNotWhitelisted(ctx context.Context, filter *nostr.Filter) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
filter.Authors = newAuthors
|
filter.Authors = newAuthors
|
||||||
|
|
||||||
|
if len(newAuthors) == 0 {
|
||||||
|
filter.Limit = 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user