aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-01-26 01:53:13 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-01-28 15:55:34 +0100
commit3da68f0a781ebd893521e2e6fa200280c92ae815 (patch)
tree11bddf841118703c725a96851318603407fd581d /server/initializers
parent28eeb811c40325a28208231324f66f4032e5cf67 (diff)
downloadPeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.tar.gz
PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.tar.zst
PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.zip
add default trending page choice, revert comments count for hot strategy
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/config.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index c7ef9b497..e1f807752 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -278,8 +278,16 @@ const CONFIG = {
278 get CATEGORIES () { return config.get<number[]>('instance.categories') || [] }, 278 get CATEGORIES () { return config.get<number[]>('instance.categories') || [] },
279 279
280 get IS_NSFW () { return config.get<boolean>('instance.is_nsfw') }, 280 get IS_NSFW () { return config.get<boolean>('instance.is_nsfw') },
281 get DEFAULT_CLIENT_ROUTE () { return config.get<string>('instance.default_client_route') },
282 get DEFAULT_NSFW_POLICY () { return config.get<NSFWPolicyType>('instance.default_nsfw_policy') }, 281 get DEFAULT_NSFW_POLICY () { return config.get<NSFWPolicyType>('instance.default_nsfw_policy') },
282
283 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
283 CUSTOMIZATIONS: { 291 CUSTOMIZATIONS: {
284 get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') }, 292 get JAVASCRIPT () { return config.get<string>('instance.customizations.javascript') },
285 get CSS () { return config.get<string>('instance.customizations.css') } 293 get CSS () { return config.get<string>('instance.customizations.css') }