From f4fb82ba231693e96d25dfe97dc834ca719dcba0 Mon Sep 17 00:00:00 2001 From: Tatsuya Koishi Date: Sat, 27 Jul 2024 19:04:53 +0900 Subject: [PATCH] https://github.com/misskey-dev/misskey/pull/13098#pullrequestreview-1847388785 --- .../backend/src/server/api/endpoints/notes/hybrid-timeline.ts | 2 +- .../backend/src/server/api/endpoints/notes/local-timeline.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts b/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts index 3acfe634de..a22f43c79b 100644 --- a/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/hybrid-timeline.ts @@ -206,7 +206,7 @@ export default class extends Endpoint { // eslint- if (defaultTag == null) { qb.orWhere('(note.visibility = \'public\') AND (note.userHost IS NULL)'); } else { - qb.orWhere(`(note.visibility = 'public') AND (':t' = any(note.tags)`, { t: normalizeForSearch(defaultTag) }); + qb.orWhere(`(note.visibility = 'public') AND (:t <@ note.tags`, { t: normalizeForSearch(defaultTag) }); } })) .innerJoinAndSelect('note.user', 'user') diff --git a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts index 0c812d2775..a2806c1787 100644 --- a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts @@ -161,7 +161,7 @@ export default class extends Endpoint { // eslint- if (defaultTag == null) { qb.andWhere('note.userHost IS NULL'); } else { - qb.andWhere(`':t' = any(note.tags)`, { t: normalizeForSearch(defaultTag) }); + qb.andWhere(`:t <@ note.tags`, { t: normalizeForSearch(defaultTag) }); } })) .innerJoinAndSelect('note.user', 'user')