From 43cfb5092a8a9b0b57421f7116a8576fadeae1db Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 25 Feb 2023 08:38:24 +0000 Subject: [PATCH] =?UTF-8?q?fix(server):=20notes/create=E3=81=AE=E3=83=90?= =?UTF-8?q?=E3=83=AA=E3=83=87=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=8C?= =?UTF-8?q?=E5=8A=B9=E3=81=84=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=20Fix=20?= =?UTF-8?q?#10079?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: mei23 --- packages/backend/src/server/api/endpoints/notes/create.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/notes/create.ts b/packages/backend/src/server/api/endpoints/notes/create.ts index f4c5a84a4fc1..fc2d3a025162 100644 --- a/packages/backend/src/server/api/endpoints/notes/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/create.ts @@ -101,6 +101,7 @@ export const paramDef = { noExtractHashtags: { type: 'boolean', default: false }, noExtractEmojis: { type: 'boolean', default: false }, replyId: { type: 'string', format: 'misskey:id', nullable: true }, + renoteId: { type: 'string', format: 'misskey:id', nullable: true }, channelId: { type: 'string', format: 'misskey:id', nullable: true }, }, anyOf: [ @@ -162,13 +163,6 @@ export const paramDef = { }, required: ['poll'], }, - { - // pure renote - properties: { - renoteId: { type: 'string', format: 'misskey:id', nullable: true }, - }, - required: ['renoteId'], - }, ], } as const;