1
0
forked from mirror/misskey

fix: validate text is not empty

fix #8747
This commit is contained in:
Johann150 2022-05-28 17:26:17 +02:00 committed by GitHub
parent abc8998b48
commit 21d54f2758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ export const paramDef = {
{
// (re)note with text, files and poll are optional
properties: {
text: { type: 'string', maxLength: MAX_NOTE_TEXT_LENGTH, nullable: false },
text: { type: 'string', minLength: 1, maxLength: MAX_NOTE_TEXT_LENGTH, nullable: false },
},
required: ['text'],
},