diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-26 15:52:11 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-26 15:52:11 +0200 |
commit | a265f7f30fe5f25e742c99c6d43e79dfd46bf2a9 (patch) | |
tree | d40096c994629a2ca6c1611063d825d86ca44d48 /server/initializers/constants.ts | |
parent | a6d947a9f993a2c1e9ab57ff9edbd813dfe78e6d (diff) | |
download | PeerTube-a265f7f30fe5f25e742c99c6d43e79dfd46bf2a9.tar.gz PeerTube-a265f7f30fe5f25e742c99c6d43e79dfd46bf2a9.tar.zst PeerTube-a265f7f30fe5f25e742c99c6d43e79dfd46bf2a9.zip |
Increase video attributes length
Number of tags: 3 -> 5
Tag length: 10 -> 30
Video name: 50 -> 120
Video channel name: 50 -> 120
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 71012f3a3..1581a3195 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -118,17 +118,17 @@ const CONSTRAINTS_FIELDS = { | |||
118 | REASON: { min: 2, max: 300 } // Length | 118 | REASON: { min: 2, max: 300 } // Length |
119 | }, | 119 | }, |
120 | VIDEO_CHANNELS: { | 120 | VIDEO_CHANNELS: { |
121 | NAME: { min: 3, max: 50 }, // Length | 121 | NAME: { min: 3, max: 120 }, // Length |
122 | DESCRIPTION: { min: 3, max: 250 } // Length | 122 | DESCRIPTION: { min: 3, max: 250 } // Length |
123 | }, | 123 | }, |
124 | VIDEOS: { | 124 | VIDEOS: { |
125 | NAME: { min: 3, max: 50 }, // Length | 125 | NAME: { min: 3, max: 120 }, // Length |
126 | DESCRIPTION: { min: 3, max: 250 }, // Length | 126 | DESCRIPTION: { min: 3, max: 250 }, // Length |
127 | EXTNAME: [ '.mp4', '.ogv', '.webm' ], | 127 | EXTNAME: [ '.mp4', '.ogv', '.webm' ], |
128 | INFO_HASH: { min: 40, max: 40 }, // Length, info hash is 20 bytes length but we represent it in hexadecimal so 20 * 2 | 128 | INFO_HASH: { min: 40, max: 40 }, // Length, info hash is 20 bytes length but we represent it in hexadecimal so 20 * 2 |
129 | DURATION: { min: 1, max: 7200 }, // Number | 129 | DURATION: { min: 1, max: 7200 }, // Number |
130 | TAGS: { min: 0, max: 3 }, // Number of total tags | 130 | TAGS: { min: 0, max: 5 }, // Number of total tags |
131 | TAG: { min: 2, max: 10 }, // Length | 131 | TAG: { min: 2, max: 30 }, // Length |
132 | THUMBNAIL: { min: 2, max: 30 }, | 132 | THUMBNAIL: { min: 2, max: 30 }, |
133 | THUMBNAIL_DATA: { min: 0, max: 20000 }, // Bytes | 133 | THUMBNAIL_DATA: { min: 0, max: 20000 }, // Bytes |
134 | VIEWS: { min: 0 }, | 134 | VIEWS: { min: 0 }, |