From ce8d9871b144b5a2462ea9e20ec90590a9fd1764 Mon Sep 17 00:00:00 2001 From: mattyatea Date: Sat, 6 Jan 2024 14:49:59 +0900 Subject: [PATCH] fix --- packages/backend/src/core/QueryService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/QueryService.ts b/packages/backend/src/core/QueryService.ts index 7a2c325715..1a67dc77eb 100644 --- a/packages/backend/src/core/QueryService.ts +++ b/packages/backend/src/core/QueryService.ts @@ -212,8 +212,8 @@ export class QueryService { // または 自分自身 .orWhere('note.userId = :meId') // または 自分宛て - .orWhere(':meId IN (note.visibleUserIds)') - .orWhere(':meId IN (note.mentions)') + .orWhere(':meId IN (SELECT unnest(note.visibleUserIds))') + .orWhere(':meId IN (SELECT unnest(note.mentions))') .orWhere(new Brackets(qb => { qb // または フォロワー宛ての投稿であり、