mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
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:
commit
5847d95121
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ function prepareFilters(filters: ClientREQ[2][]): Filter[] {
|
||||||
return filters.map((filter) => ({
|
return filters.map((filter) => ({
|
||||||
...filter,
|
...filter,
|
||||||
// Return only local events unless the query is already narrow.
|
// 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,
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue