mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-18 22:14:23 +01:00
relay: fix querying by ids and authors
This commit is contained in:
@@ -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,
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user