fix(server): notes/createのバリデーションが効いていない

Fix #10079

Co-Authored-By: mei23 <m@m544.net>
This commit is contained in:
tamaina 2023-02-25 08:38:24 +00:00
parent 0691901345
commit 43cfb5092a
1 changed files with 1 additions and 7 deletions

View File

@ -101,6 +101,7 @@ export const paramDef = {
noExtractHashtags: { type: 'boolean', default: false }, noExtractHashtags: { type: 'boolean', default: false },
noExtractEmojis: { type: 'boolean', default: false }, noExtractEmojis: { type: 'boolean', default: false },
replyId: { type: 'string', format: 'misskey:id', nullable: true }, replyId: { type: 'string', format: 'misskey:id', nullable: true },
renoteId: { type: 'string', format: 'misskey:id', nullable: true },
channelId: { type: 'string', format: 'misskey:id', nullable: true }, channelId: { type: 'string', format: 'misskey:id', nullable: true },
}, },
anyOf: [ anyOf: [
@ -162,13 +163,6 @@ export const paramDef = {
}, },
required: ['poll'], required: ['poll'],
}, },
{
// pure renote
properties: {
renoteId: { type: 'string', format: 'misskey:id', nullable: true },
},
required: ['renoteId'],
},
], ],
} as const; } as const;