From 36cfe398d207aa1c10c05d9752f7e39e78738417 Mon Sep 17 00:00:00 2001 From: Tatsuya Koishi Date: Sun, 28 Jan 2024 10:59:05 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=83=87=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=81=AE=E8=AA=A4=E3=82=8A=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/endpoints/notes/local-timeline.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 642eb57ed9..1c49023073 100644 --- a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts @@ -155,15 +155,15 @@ export default class extends Endpoint { // eslint- const defaultTag: string | null = config.tagging?.defaultTag; const query = this.queryService.makePaginationQuery(this.notesRepository.createQueryBuilder('note'), ps.sinceId, ps.untilId) - .andWhere(new Brackets(qb => { - qb.andWhere('note.visibility = \'public\''); - qb.andWhere('note.channelId IS NULL'); - if (defaultTag == null) { - qb.andWhere('note.userHost IS NULL'); - } else { - qb.andWhere(`':t' = any(note.tags)`, { t: normalizeForSearch(defaultTag) }); - } - })) + .andWhere(new Brackets(qb => { + qb.andWhere('note.visibility = \'public\''); + qb.andWhere('note.channelId IS NULL'); + if (defaultTag == null) { + qb.andWhere('note.userHost IS NULL'); + } else { + qb.andWhere(`':t' = any(note.tags)`, { t: normalizeForSearch(defaultTag) }); + } + })) .innerJoinAndSelect('note.user', 'user') .leftJoinAndSelect('note.reply', 'reply') .leftJoinAndSelect('note.renote', 'renote')