mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29: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()
|
.execute()
|
||||||
.then((rows) => rows.map(({ event_id }) => event_id));
|
.then((rows) => rows.map(({ event_id }) => event_id));
|
||||||
|
|
||||||
if (tagIds.length) {
|
|
||||||
filter.ids = filter.ids ?? [];
|
filter.ids = filter.ids ?? [];
|
||||||
filter.ids.push(...tagIds);
|
filter.ids.push(...tagIds);
|
||||||
}
|
|
||||||
|
|
||||||
for (const [key] of tagEntries) {
|
for (const [key] of tagEntries) {
|
||||||
delete filter[key];
|
delete filter[key];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue