Merge branch 'fix-local-filter' into 'develop'

relay: fix querying by ids and authors

See merge request soapbox-pub/ditto!45
This commit is contained in:
Alex Gleason 2023-09-12 00:47:31 +00:00
commit 5847d95121
1 changed files with 1 additions and 1 deletions

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,
}));
}