diff options
author | Chocobozzz <me@florianbigard.com> | 2023-02-20 10:17:03 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-02-20 10:18:05 +0100 |
commit | 15825ef18d3b2bb74f4e613496cf3e2921a87389 (patch) | |
tree | d68b590baa98b090c212a117317c21059e064725 /config | |
parent | 5471449f998eec270b184e6080e6f9853e5d722a (diff) | |
download | PeerTube-15825ef18d3b2bb74f4e613496cf3e2921a87389.tar.gz PeerTube-15825ef18d3b2bb74f4e613496cf3e2921a87389.tar.zst PeerTube-15825ef18d3b2bb74f4e613496cf3e2921a87389.zip |
Fix default trending algorithm in admin config
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 10 | ||||
-rw-r--r-- | config/production.yaml.example | 10 |
2 files changed, 12 insertions, 8 deletions
diff --git a/config/default.yaml b/config/default.yaml index 37059e9e0..bb4a823fa 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -236,12 +236,14 @@ open_telemetry: | |||
236 | 236 | ||
237 | trending: | 237 | trending: |
238 | videos: | 238 | videos: |
239 | interval_days: 7 # Compute trending videos for the last x days | 239 | interval_days: 7 # Compute trending videos for the last x days for 'most-viewed' algorithm |
240 | |||
240 | algorithms: | 241 | algorithms: |
241 | enabled: | 242 | enabled: |
242 | - 'hot' # adaptation of Reddit's 'Hot' algorithm | 243 | - 'hot' # Adaptation of Reddit's 'Hot' algorithm |
243 | - 'most-viewed' # default, used initially by PeerTube as the trending page | 244 | - 'most-viewed' # Number of views in the last x days |
244 | - 'most-liked' | 245 | - 'most-liked' # Global views since the upload of the video |
246 | |||
245 | default: 'most-viewed' | 247 | default: 'most-viewed' |
246 | 248 | ||
247 | # Cache remote videos on your server, to help other instances to broadcast the video | 249 | # Cache remote videos on your server, to help other instances to broadcast the video |
diff --git a/config/production.yaml.example b/config/production.yaml.example index 906fb7e1f..f1ebf9095 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -234,12 +234,14 @@ open_telemetry: | |||
234 | 234 | ||
235 | trending: | 235 | trending: |
236 | videos: | 236 | videos: |
237 | interval_days: 7 # Compute trending videos for the last x days | 237 | interval_days: 7 # Compute trending videos for the last x days for 'most-viewed' algorithm |
238 | |||
238 | algorithms: | 239 | algorithms: |
239 | enabled: | 240 | enabled: |
240 | - 'hot' # adaptation of Reddit's 'Hot' algorithm | 241 | - 'hot' # Adaptation of Reddit's 'Hot' algorithm |
241 | - 'most-viewed' # default, used initially by PeerTube as the trending page | 242 | - 'most-viewed' # Number of views in the last x days |
242 | - 'most-liked' | 243 | - 'most-liked' # Global views since the upload of the video |
244 | |||
243 | default: 'most-viewed' | 245 | default: 'most-viewed' |
244 | 246 | ||
245 | # Cache remote videos on your server, to help other instances to broadcast the video | 247 | # Cache remote videos on your server, to help other instances to broadcast the video |