mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add trending videos strategy
This commit is contained in:
parent
6f0c46be8c
commit
b36f41ca09
11 changed files with 254 additions and 142 deletions
|
@ -41,7 +41,7 @@ function checkConfig () {
|
|||
const redundancyVideos = config.get<VideosRedundancy[]>('redundancy.videos')
|
||||
if (isArray(redundancyVideos)) {
|
||||
for (const r of redundancyVideos) {
|
||||
if ([ 'most-views' ].indexOf(r.strategy) === -1) {
|
||||
if ([ 'most-views', 'trending' ].indexOf(r.strategy) === -1) {
|
||||
return 'Redundancy video entries should have "most-views" strategy instead of ' + r.strategy
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue