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 82331575cf
commit 4a8ea6f2d1

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'],
},