aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
authorAurélien Bertron <aurelienbertron@gmail.com>2018-03-24 19:40:48 +0100
committerRigel Kent <par@rigelk.eu>2018-03-24 19:40:48 +0100
commitb32b78271856ee12fdce5fadc7ed0fe81ecaeff5 (patch)
tree1ad96ac50323e6c743f2c75a25426c385effb364 /server/initializers/constants.ts
parentb00d3770213d37a375710ec4446b743402c6146d (diff)
downloadPeerTube-b32b78271856ee12fdce5fadc7ed0fe81ecaeff5.tar.gz
PeerTube-b32b78271856ee12fdce5fadc7ed0fe81ecaeff5.tar.zst
PeerTube-b32b78271856ee12fdce5fadc7ed0fe81ecaeff5.zip
Limit comment length to 1 character, fixes #394 (#399)
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts2
1 files changed, 1 insertions, 1 deletions
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 = {
226 COUNT: { min: 0 } 226 COUNT: { min: 0 }
227 }, 227 },
228 VIDEO_COMMENTS: { 228 VIDEO_COMMENTS: {
229 TEXT: { min: 2, max: 3000 }, // Length 229 TEXT: { min: 1, max: 3000 }, // Length
230 URL: { min: 3, max: 2000 } // Length 230 URL: { min: 3, max: 2000 } // Length
231 }, 231 },
232 VIDEO_SHARE: { 232 VIDEO_SHARE: {