From 2a561f16ef0c5d79d53a3bb3dcc8c6a07532299a Mon Sep 17 00:00:00 2001 From: hijiki Date: Fri, 8 Nov 2024 04:59:01 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=BB=E3=81=A8=E3=82=93=E3=81=A9=E3=81=AEap?= =?UTF-8?q?i=E3=82=A8=E3=83=B3=E3=83=89=E3=83=9D=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=82=92=E8=AA=8D=E8=A8=BC=E3=81=82=E3=82=8A=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=9F2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/src/server/api/endpoints/notes/conversation.ts | 2 +- .../backend/src/server/api/endpoints/notes/global-timeline.ts | 4 +++- .../backend/src/server/api/endpoints/notes/local-timeline.ts | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/conversation.ts b/packages/backend/src/server/api/endpoints/notes/conversation.ts index 37bc5cc878..cd0dbec739 100755 --- a/packages/backend/src/server/api/endpoints/notes/conversation.ts +++ b/packages/backend/src/server/api/endpoints/notes/conversation.ts @@ -15,7 +15,7 @@ import { ApiError } from '../../error.js'; export const meta = { tags: ['notes'], - requireCredential: false, + requireCredential: true, res: { type: 'array', diff --git a/packages/backend/src/server/api/endpoints/notes/global-timeline.ts b/packages/backend/src/server/api/endpoints/notes/global-timeline.ts index d660f3fb69..d909bddd40 100755 --- a/packages/backend/src/server/api/endpoints/notes/global-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/global-timeline.ts @@ -18,6 +18,8 @@ import { CacheService } from '@/core/CacheService.js'; export const meta = { tags: ['notes'], + requireCredential: true, + res: { type: 'array', optional: false, nullable: false, @@ -98,7 +100,7 @@ export default class extends Endpoint { // eslint- } if (!ps.withBots) query.andWhere('user.isBot = FALSE'); - + if (ps.withRenotes === false) { query.andWhere(new Brackets(qb => { qb.where('note.renoteId IS NULL'); 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 d4c806d7e2..a9b872c1aa 100755 --- a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts @@ -20,6 +20,8 @@ import { ApiError } from '../../error.js'; export const meta = { tags: ['notes'], + requireCredential: true, + res: { type: 'array', optional: false, nullable: false,