fix(server): notes/createのバリデーションが効いていない
Fix #10079 Co-Authored-By: mei23 <m@m544.net>
This commit is contained in:
parent
0691901345
commit
43cfb5092a
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue