diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-29 16:35:27 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-29 16:35:27 +0100 |
commit | a3ce4ae847b749d4cb2ebebb4134264b7c58dcc5 (patch) | |
tree | 9c3ba1efaa65d6abc8525d38e1c0862b5fa67648 /server/initializers | |
parent | 1689176a7bff6edd90d162994cccec2e4bfe9a45 (diff) | |
download | PeerTube-a3ce4ae847b749d4cb2ebebb4134264b7c58dcc5.tar.gz PeerTube-a3ce4ae847b749d4cb2ebebb4134264b7c58dcc5.tar.zst PeerTube-a3ce4ae847b749d4cb2ebebb4134264b7c58dcc5.zip |
Limit channel numbers
We can't load too much channels in selects and it helps to prevent actor
name squatting
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/constants.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index a1538f3ca..0473b48c0 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -431,6 +431,10 @@ const OVERVIEWS = { | |||
431 | } | 431 | } |
432 | } | 432 | } |
433 | 433 | ||
434 | const VIDEO_CHANNELS = { | ||
435 | MAX_PER_USER: 20 | ||
436 | } | ||
437 | |||
434 | // --------------------------------------------------------------------------- | 438 | // --------------------------------------------------------------------------- |
435 | 439 | ||
436 | const SERVER_ACTOR_NAME = 'peertube' | 440 | const SERVER_ACTOR_NAME = 'peertube' |
@@ -725,6 +729,7 @@ export { | |||
725 | VIDEO_TRANSCODING_FPS, | 729 | VIDEO_TRANSCODING_FPS, |
726 | FFMPEG_NICE, | 730 | FFMPEG_NICE, |
727 | VIDEO_ABUSE_STATES, | 731 | VIDEO_ABUSE_STATES, |
732 | VIDEO_CHANNELS, | ||
728 | LRU_CACHE, | 733 | LRU_CACHE, |
729 | JOB_REQUEST_TIMEOUT, | 734 | JOB_REQUEST_TIMEOUT, |
730 | USER_PASSWORD_RESET_LIFETIME, | 735 | USER_PASSWORD_RESET_LIFETIME, |