From b32b78271856ee12fdce5fadc7ed0fe81ecaeff5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aur=C3=A9lien=20Bertron?= Date: Sat, 24 Mar 2018 19:40:48 +0100 Subject: [PATCH] Limit comment length to 1 character, fixes #394 (#399) --- server/initializers/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: { -- 2.25.1