mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
EventsDB: fix returning too many rows from tag filters
This commit is contained in:
parent
c60e62ef8d
commit
2589b86a8a
1 changed files with 2 additions and 4 deletions
|
|
@ -305,10 +305,8 @@ class EventsDB implements NStore {
|
|||
.execute()
|
||||
.then((rows) => rows.map(({ event_id }) => event_id));
|
||||
|
||||
if (tagIds.length) {
|
||||
filter.ids = filter.ids ?? [];
|
||||
filter.ids.push(...tagIds);
|
||||
}
|
||||
filter.ids = filter.ids ?? [];
|
||||
filter.ids.push(...tagIds);
|
||||
|
||||
for (const [key] of tagEntries) {
|
||||
delete filter[key];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue