diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-09 13:32:44 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-09 13:32:44 +0200 |
commit | a10fc78bb0e00e98c8f59edc16cd323b9c8b0615 (patch) | |
tree | 4988ea8836d47321061c7f8c8a78ebd2b4eb35ef /server/initializers/constants.ts | |
parent | 360329cc029c062bfb145c90f7bf1c007c39af81 (diff) | |
download | PeerTube-a10fc78bb0e00e98c8f59edc16cd323b9c8b0615.tar.gz PeerTube-a10fc78bb0e00e98c8f59edc16cd323b9c8b0615.tar.zst PeerTube-a10fc78bb0e00e98c8f59edc16cd323b9c8b0615.zip |
Fix video channel description/support max length
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 6556aa168..c52c27c78 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -13,7 +13,7 @@ let config: IConfig = require('config') | |||
13 | 13 | ||
14 | // --------------------------------------------------------------------------- | 14 | // --------------------------------------------------------------------------- |
15 | 15 | ||
16 | const LAST_MIGRATION_VERSION = 210 | 16 | const LAST_MIGRATION_VERSION = 215 |
17 | 17 | ||
18 | // --------------------------------------------------------------------------- | 18 | // --------------------------------------------------------------------------- |
19 | 19 | ||
@@ -192,8 +192,8 @@ const CONSTRAINTS_FIELDS = { | |||
192 | }, | 192 | }, |
193 | VIDEO_CHANNELS: { | 193 | VIDEO_CHANNELS: { |
194 | NAME: { min: 3, max: 120 }, // Length | 194 | NAME: { min: 3, max: 120 }, // Length |
195 | DESCRIPTION: { min: 3, max: 250 }, // Length | 195 | DESCRIPTION: { min: 3, max: 500 }, // Length |
196 | SUPPORT: { min: 3, max: 300 }, // Length | 196 | SUPPORT: { min: 3, max: 500 }, // Length |
197 | URL: { min: 3, max: 2000 } // Length | 197 | URL: { min: 3, max: 2000 } // Length |
198 | }, | 198 | }, |
199 | VIDEOS: { | 199 | VIDEOS: { |
@@ -201,7 +201,7 @@ const CONSTRAINTS_FIELDS = { | |||
201 | LANGUAGE: { min: 1, max: 10 }, // Length | 201 | LANGUAGE: { min: 1, max: 10 }, // Length |
202 | TRUNCATED_DESCRIPTION: { min: 3, max: 250 }, // Length | 202 | TRUNCATED_DESCRIPTION: { min: 3, max: 250 }, // Length |
203 | DESCRIPTION: { min: 3, max: 10000 }, // Length | 203 | DESCRIPTION: { min: 3, max: 10000 }, // Length |
204 | SUPPORT: { min: 3, max: 300 }, // Length | 204 | SUPPORT: { min: 3, max: 500 }, // Length |
205 | IMAGE: { | 205 | IMAGE: { |
206 | EXTNAME: [ '.jpg', '.jpeg' ], | 206 | EXTNAME: [ '.jpg', '.jpeg' ], |
207 | FILE_SIZE: { | 207 | FILE_SIZE: { |