aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/config.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-01-27 17:15:21 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-01-28 15:55:34 +0100
commitba5d4a849c7d7ba05f093480ae12286c4af61556 (patch)
tree704a80b96d3b437ad12feacaaaf58a96b97282a1 /server/initializers/config.ts
parent3da68f0a781ebd893521e2e6fa200280c92ae815 (diff)
downloadPeerTube-ba5d4a849c7d7ba05f093480ae12286c4af61556.tar.gz
PeerTube-ba5d4a849c7d7ba05f093480ae12286c4af61556.tar.zst
PeerTube-ba5d4a849c7d7ba05f093480ae12286c4af61556.zip
move from trending routes to alg param
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r--server/initializers/config.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index e1f807752..fc4a8b709 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -110,7 +110,11 @@ const CONFIG = {
110 }, 110 },
111 TRENDING: { 111 TRENDING: {
112 VIDEOS: { 112 VIDEOS: {
113 INTERVAL_DAYS: config.get<number>('trending.videos.interval_days') 113 INTERVAL_DAYS: config.get<number>('trending.videos.interval_days'),
114 ALGORITHMS: {
115 get ENABLED () { return config.get<string[]>('trending.videos.algorithms.enabled') },
116 get DEFAULT () { return config.get<string>('trending.videos.algorithms.default') }
117 }
114 } 118 }
115 }, 119 },
116 REDUNDANCY: { 120 REDUNDANCY: {
@@ -281,12 +285,6 @@ const CONFIG = {
281 get DEFAULT_NSFW_POLICY () { return config.get<NSFWPolicyType>('instance.default_nsfw_policy') }, 285 get DEFAULT_NSFW_POLICY () { return config.get<NSFWPolicyType>('instance.default_nsfw_policy') },
282 286
283 get DEFAULT_CLIENT_ROUTE () { return config.get<string>('instance.default_client_route') }, 287 get DEFAULT_CLIENT_ROUTE () { return config.get<string>('instance.default_client_route') },
284 get DEFAULT_TRENDING_ROUTE () { return config.get<string>('instance.default_trending_route') },
285 PAGES: {
286 HOT: {
287 get ENABLED () { return config.get<boolean>('instance.pages.hot.enabled') }
288 }
289 },
290 288
291 CUSTOMIZATIONS: { 289 CUSTOMIZATIONS: {
292 get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') }, 290 get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') },