From ba5d4a849c7d7ba05f093480ae12286c4af61556 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 27 Jan 2021 17:15:21 +0100 Subject: move from trending routes to alg param --- shared/extra-utils/server/config.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'shared/extra-utils') diff --git a/shared/extra-utils/server/config.ts b/shared/extra-utils/server/config.ts index 5152ec693..4e09e0412 100644 --- a/shared/extra-utils/server/config.ts +++ b/shared/extra-utils/server/config.ts @@ -69,12 +69,6 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti defaultNSFWPolicy: 'blur', defaultClientRoute: '/videos/recently-added', - defaultTrendingRoute: '/videos/trending', - pages: { - hot: { - enabled: true - } - }, customizations: { javascript: 'alert("coucou")', @@ -165,6 +159,14 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti } } }, + trending: { + videos: { + algorithms: { + enabled: [ 'hot', 'most-viewed', 'most-liked' ], + default: 'hot' + } + } + }, autoBlacklist: { videos: { ofUsers: { -- cgit v1.2.3