Skip to content

Commit

Permalink
fix(server): notes/createのバリデーションが効いていない
Browse files Browse the repository at this point in the history
Fix misskey-dev#10079

Co-Authored-By: mei23 <m@m544.net>
  • Loading branch information
tamaina and mei23 committed Feb 25, 2023
1 parent 0691901 commit 43cfb50
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/backend/src/server/api/endpoints/notes/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -162,13 +163,6 @@ export const paramDef = {
},
required: ['poll'],
},
{
// pure renote
properties: {
renoteId: { type: 'string', format: 'misskey:id', nullable: true },
},
required: ['renoteId'],
},
],
} as const;

Expand Down

0 comments on commit 43cfb50

Please sign in to comment.