diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-14 09:57:21 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-14 09:57:21 +0200 |
commit | b36f41ca09e92ecb30d367d91d1089a23d10d585 (patch) | |
tree | 34b7c90e17f73f37d069a2f08d60dc36fa08372f /server/initializers | |
parent | 6f0c46be8c9f4690d5e5cb758c4df6164b006f83 (diff) | |
download | PeerTube-b36f41ca09e92ecb30d367d91d1089a23d10d585.tar.gz PeerTube-b36f41ca09e92ecb30d367d91d1089a23d10d585.tar.zst PeerTube-b36f41ca09e92ecb30d367d91d1089a23d10d585.zip |
Add trending videos strategy
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/checker.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/checker.ts b/server/initializers/checker.ts index 6a2badd35..6048151a3 100644 --- a/server/initializers/checker.ts +++ b/server/initializers/checker.ts | |||
@@ -41,7 +41,7 @@ function checkConfig () { | |||
41 | const redundancyVideos = config.get<VideosRedundancy[]>('redundancy.videos') | 41 | const redundancyVideos = config.get<VideosRedundancy[]>('redundancy.videos') |
42 | if (isArray(redundancyVideos)) { | 42 | if (isArray(redundancyVideos)) { |
43 | for (const r of redundancyVideos) { | 43 | for (const r of redundancyVideos) { |
44 | if ([ 'most-views' ].indexOf(r.strategy) === -1) { | 44 | if ([ 'most-views', 'trending' ].indexOf(r.strategy) === -1) { |
45 | return 'Redundancy video entries should have "most-views" strategy instead of ' + r.strategy | 45 | return 'Redundancy video entries should have "most-views" strategy instead of ' + r.strategy |
46 | } | 46 | } |
47 | } | 47 | } |