diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2021-01-26 01:53:13 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-01-28 15:55:34 +0100 |
commit | 3da68f0a781ebd893521e2e6fa200280c92ae815 (patch) | |
tree | 11bddf841118703c725a96851318603407fd581d /shared/models | |
parent | 28eeb811c40325a28208231324f66f4032e5cf67 (diff) | |
download | PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.tar.gz PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.tar.zst PeerTube-3da68f0a781ebd893521e2e6fa200280c92ae815.zip |
add default trending page choice, revert comments count for hot strategy
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/server/custom-config.model.ts | 10 | ||||
-rw-r--r-- | shared/models/server/server-config.model.ts | 8 |
2 files changed, 16 insertions, 2 deletions
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts index 9a6a24923..fcc29e5d7 100644 --- a/shared/models/server/custom-config.model.ts +++ b/shared/models/server/custom-config.model.ts | |||
@@ -30,8 +30,16 @@ export interface CustomConfig { | |||
30 | categories: number[] | 30 | categories: number[] |
31 | 31 | ||
32 | isNSFW: boolean | 32 | isNSFW: boolean |
33 | defaultClientRoute: string | ||
34 | defaultNSFWPolicy: NSFWPolicyType | 33 | defaultNSFWPolicy: NSFWPolicyType |
34 | |||
35 | defaultClientRoute: string | ||
36 | defaultTrendingRoute: string | ||
37 | pages: { | ||
38 | hot: { | ||
39 | enabled: boolean | ||
40 | } | ||
41 | } | ||
42 | |||
35 | customizations: { | 43 | customizations: { |
36 | javascript?: string | 44 | javascript?: string |
37 | css?: string | 45 | css?: string |
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index 2dcf98f4f..a2d93ce73 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts | |||
@@ -36,9 +36,15 @@ export interface ServerConfig { | |||
36 | instance: { | 36 | instance: { |
37 | name: string | 37 | name: string |
38 | shortDescription: string | 38 | shortDescription: string |
39 | defaultClientRoute: string | ||
40 | isNSFW: boolean | 39 | isNSFW: boolean |
41 | defaultNSFWPolicy: NSFWPolicyType | 40 | defaultNSFWPolicy: NSFWPolicyType |
41 | defaultClientRoute: string | ||
42 | defaultTrendingRoute: string | ||
43 | pages: { | ||
44 | hot: { | ||
45 | enabled: boolean | ||
46 | } | ||
47 | } | ||
42 | customizations: { | 48 | customizations: { |
43 | javascript: string | 49 | javascript: string |
44 | css: string | 50 | css: string |