From 98e40e666cf02024c998e2fba031bc429f69e087 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 11 Sep 2023 14:28:50 +0900 Subject: [PATCH] fix --- packages/backend/src/server/api/endpoints/users/notes.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/users/notes.ts b/packages/backend/src/server/api/endpoints/users/notes.ts index 50dc63d4d..5192713b9 100644 --- a/packages/backend/src/server/api/endpoints/users/notes.ts +++ b/packages/backend/src/server/api/endpoints/users/notes.ts @@ -84,7 +84,10 @@ export default class extends Endpoint { // eslint- .leftJoinAndSelect('reply.user', 'replyUser') .leftJoinAndSelect('renote.user', 'renoteUser'); - query.andWhere('channel.isSensitive != true'); + query.andWhere(new Brackets(qb => { + qb.orWhere('note.channelId IS NULL'); + qb.orWhere('channel.isSensitive = false'); + })); this.queryService.generateVisibilityQuery(query, me); if (me) {