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 --- config/default.yaml | 10 ++++++---- config/production.yaml.example | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'config') diff --git a/config/default.yaml b/config/default.yaml index 43c7f4a53..b9e382fa7 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -106,6 +106,12 @@ log: trending: videos: interval_days: 7 # Compute trending videos for the last x days + algorithms: + enabled: + - 'hot' # adaptation of the Reddit 'Hot' algorithm + - 'most-viewed' # default, used initially by PeerTube as the trending page + - 'most-liked' + default: 'most-viewed' # Cache remote videos on your server, to help other instances to broadcast the video # You can define multiple caches using different sizes/strategies @@ -366,10 +372,6 @@ instance: # - 18 # Food default_client_route: '/videos/trending' - default_trending_route: '/videos/most-viewed' - pages: - hot: - enabled: true # Whether or not the instance is dedicated to NSFW content # Enabling it will allow other administrators to know that you are mainly federating sensitive content diff --git a/config/production.yaml.example b/config/production.yaml.example index f9f3abc18..b616c6ced 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -106,6 +106,12 @@ log: trending: videos: interval_days: 7 # Compute trending videos for the last x days + algorithms: + enabled: + - 'hot' # adaptation of the Reddit 'Hot' algorithm + - 'most-viewed' # default, used initially by PeerTube as the trending page + - 'most-liked' + default: 'most-viewed' # Cache remote videos on your server, to help other instances to broadcast the video # You can define multiple caches using different sizes/strategies @@ -380,10 +386,6 @@ instance: # - 18 # Food default_client_route: '/videos/trending' - default_trending_route: '/videos/most-viewed' - pages: - hot: - enabled: true # Whether or not the instance is dedicated to NSFW content # Enabling it will allow other administrators to know that you are mainly federating sensitive content -- cgit v1.2.3