diff --git a/packages/backend/src/server/api/common/generate-fts-query.ts b/packages/backend/src/server/api/common/generate-fts-query.ts index 324c90207..331e2c013 100644 --- a/packages/backend/src/server/api/common/generate-fts-query.ts +++ b/packages/backend/src/server/api/common/generate-fts-query.ts @@ -147,9 +147,9 @@ function miscFilter(query: SelectQueryBuilder, filter: string) { subQuery = Followings.createQueryBuilder('following') .select('following.followeeId') .where('following.followerId = :meId') - } else if (filter === 'replies') { + } else if (filter === 'replies' || filter === 'reply') { query.andWhere('note.replyId IS NOT NULL'); - } else if (filter === 'boosts' || filter === 'renotes') { + } else if (filter === 'boosts' || filter === 'boost' || filter === 'renotes' || filter === 'renote') { query.andWhere('note.renoteId IS NOT NULL'); } @@ -168,7 +168,7 @@ function miscFilterInverse(query: SelectQueryBuilder, filter: string) { .where('following.followerId = :meId') } else if (filter === 'replies') { query.andWhere('note.replyId IS NULL'); - } else if (filter === 'boosts' || filter === 'renotes') { + } else if (filter === 'boosts' || filter === 'boost' || filter === 'renotes' || filter === 'renote') { query.andWhere('note.renoteId IS NULL'); } diff --git a/packages/client/src/pages/search-filters.vue b/packages/client/src/pages/search-filters.vue index 53d49bb96..b69e4c7ce 100644 --- a/packages/client/src/pages/search-filters.vue +++ b/packages/client/src/pages/search-filters.vue @@ -30,7 +30,7 @@
{{ i18n.ts._filters._dialog.miscFilters }}
-

[-]filter:followers|following|replies|renotes|boosts

+

[-]filter:followers|following|replies|reply|renote[s]|boost[s]