From b3fc2b484a2d5f5a673d8378ceda5fd19a82be95 Mon Sep 17 00:00:00 2001 From: hijiki Date: Fri, 25 Oct 2024 20:07:22 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=86=E3=81=95=E3=81=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/server/api/endpoints/notes/show.ts | 6 +++--- packages/backend/src/server/api/endpoints/users/notes.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/show.ts b/packages/backend/src/server/api/endpoints/notes/show.ts index 8440b26088..4afc525e57 100755 --- a/packages/backend/src/server/api/endpoints/notes/show.ts +++ b/packages/backend/src/server/api/endpoints/notes/show.ts @@ -14,7 +14,7 @@ import { ApiError } from '../../error.js'; export const meta = { tags: ['notes'], - requireCredential: true, + requireCredential: false, res: { type: 'object', @@ -44,7 +44,7 @@ export default class extends Endpoint { // eslint- constructor( @Inject(DI.notesRepository) private notesRepository: NotesRepository, - + private noteEntityService: NoteEntityService, private queryService: QueryService, ) { @@ -56,7 +56,7 @@ export default class extends Endpoint { // eslint- if (me) { this.queryService.generateBlockedUserQuery(query, me); } - + const note = await query.getOne(); if (note === null) { diff --git a/packages/backend/src/server/api/endpoints/users/notes.ts b/packages/backend/src/server/api/endpoints/users/notes.ts index 358946e1eb..fc0174d692 100755 --- a/packages/backend/src/server/api/endpoints/users/notes.ts +++ b/packages/backend/src/server/api/endpoints/users/notes.ts @@ -21,7 +21,7 @@ import { ApiError } from '@/server/api/error.js'; export const meta = { tags: ['users', 'notes'], - requireCredential: true, + requireCredential: false, res: { type: 'array',