fix: small performance tweaks
Some checks failed
Release / app (push) Has been cancelled

This commit is contained in:
2024-12-06 13:22:13 +00:00
parent 897bb46706
commit 0901e54ab6
8 changed files with 20 additions and 54 deletions

View File

@ -96,6 +96,11 @@ export class QueryManager extends EventEmitter<QueryManagerEvents> {
// check for empty filters
filters = trimFilters(filters);
if (filters.length === 0) {
this.#log("Dropping %s %o", q.id);
return;
}
// automated outbox model, load relays for queried authors
for (const f of filters) {
if (f.authors) {