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')