diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-01-27 17:15:21 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-01-28 15:55:34 +0100 |
commit | ba5d4a849c7d7ba05f093480ae12286c4af61556 (patch) | |
tree | 704a80b96d3b437ad12feacaaaf58a96b97282a1 /shared/extra-utils/server/config.ts | |
parent | 3da68f0a781ebd893521e2e6fa200280c92ae815 (diff) | |
download | PeerTube-ba5d4a849c7d7ba05f093480ae12286c4af61556.tar.gz PeerTube-ba5d4a849c7d7ba05f093480ae12286c4af61556.tar.zst PeerTube-ba5d4a849c7d7ba05f093480ae12286c4af61556.zip |
move from trending routes to alg param
Diffstat (limited to 'shared/extra-utils/server/config.ts')
-rw-r--r-- | shared/extra-utils/server/config.ts | 14 |
1 files changed, 8 insertions, 6 deletions
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 | |||
69 | defaultNSFWPolicy: 'blur', | 69 | defaultNSFWPolicy: 'blur', |
70 | 70 | ||
71 | defaultClientRoute: '/videos/recently-added', | 71 | defaultClientRoute: '/videos/recently-added', |
72 | defaultTrendingRoute: '/videos/trending', | ||
73 | pages: { | ||
74 | hot: { | ||
75 | enabled: true | ||
76 | } | ||
77 | }, | ||
78 | 72 | ||
79 | customizations: { | 73 | customizations: { |
80 | javascript: 'alert("coucou")', | 74 | javascript: 'alert("coucou")', |
@@ -165,6 +159,14 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti | |||
165 | } | 159 | } |
166 | } | 160 | } |
167 | }, | 161 | }, |
162 | trending: { | ||
163 | videos: { | ||
164 | algorithms: { | ||
165 | enabled: [ 'hot', 'most-viewed', 'most-liked' ], | ||
166 | default: 'hot' | ||
167 | } | ||
168 | } | ||
169 | }, | ||
168 | autoBlacklist: { | 170 | autoBlacklist: { |
169 | videos: { | 171 | videos: { |
170 | ofUsers: { | 172 | ofUsers: { |