From: Aurélien Bertron Date: Sat, 24 Mar 2018 18:40:48 +0000 (+0100) Subject: Limit comment length to 1 character, fixes #394 (#399) X-Git-Tag: v1.0.0-beta.2~42 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=b32b78271856ee12fdce5fadc7ed0fe81ecaeff5;p=github%2FChocobozzz%2FPeerTube.git Limit comment length to 1 character, fixes #394 (#399) --- diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 705d9b520..481b21bbb 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -226,7 +226,7 @@ const CONSTRAINTS_FIELDS = { COUNT: { min: 0 } }, VIDEO_COMMENTS: { - TEXT: { min: 2, max: 3000 }, // Length + TEXT: { min: 1, max: 3000 }, // Length URL: { min: 3, max: 2000 } // Length }, VIDEO_SHARE: {