relay: fix querying by ids and authors

This commit is contained in:
Alex Gleason
2023-09-11 19:45:27 -05:00
parent 334814056b
commit 0f9ff5bcaa

View File

@@ -112,7 +112,7 @@ function prepareFilters(filters: ClientREQ[2][]): Filter[] {
return filters.map((filter) => ({
...filter,
// Return only local events unless the query is already narrow.
local: !filter.ids?.length && !filter.authors?.length,
local: (filter.ids?.length || filter.authors?.length) ? undefined : true,
}));
}