aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index c06eb6fb0..0b4b41273 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -274,8 +274,6 @@ const CONSTRAINTS_FIELDS = {
274 DURATION: { min: 0 }, // Number 274 DURATION: { min: 0 }, // Number
275 TAGS: { min: 0, max: 5 }, // Number of total tags 275 TAGS: { min: 0, max: 5 }, // Number of total tags
276 TAG: { min: 2, max: 30 }, // Length 276 TAG: { min: 2, max: 30 }, // Length
277 THUMBNAIL: { min: 2, max: 30 },
278 THUMBNAIL_DATA: { min: 0, max: 20000 }, // Bytes
279 VIEWS: { min: 0 }, 277 VIEWS: { min: 0 },
280 LIKES: { min: 0 }, 278 LIKES: { min: 0 },
281 DISLIKES: { min: 0 }, 279 DISLIKES: { min: 0 },
@@ -750,6 +748,7 @@ if (isTestInstance() === true) {
750 ACTIVITY_PUB.VIDEO_PLAYLIST_REFRESH_INTERVAL = 10 * 1000 // 10 seconds 748 ACTIVITY_PUB.VIDEO_PLAYLIST_REFRESH_INTERVAL = 10 * 1000 // 10 seconds
751 749
752 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB 750 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB
751 CONSTRAINTS_FIELDS.VIDEOS.IMAGE.FILE_SIZE.max = 400 * 1024 // 400KB
753 752
754 SCHEDULER_INTERVALS_MS.actorFollowScores = 1000 753 SCHEDULER_INTERVALS_MS.actorFollowScores = 1000
755 SCHEDULER_INTERVALS_MS.removeOldJobs = 10000 754 SCHEDULER_INTERVALS_MS.removeOldJobs = 10000