mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
add default trending page choice, revert comments count for hot strategy
This commit is contained in:
@@ -65,9 +65,17 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti
|
||||
languages: [ 'en', 'es' ],
|
||||
categories: [ 1, 2 ],
|
||||
|
||||
defaultClientRoute: '/videos/recently-added',
|
||||
isNSFW: true,
|
||||
defaultNSFWPolicy: 'blur',
|
||||
|
||||
defaultClientRoute: '/videos/recently-added',
|
||||
defaultTrendingRoute: '/videos/trending',
|
||||
pages: {
|
||||
hot: {
|
||||
enabled: true
|
||||
}
|
||||
},
|
||||
|
||||
customizations: {
|
||||
javascript: 'alert("coucou")',
|
||||
css: 'body { background-color: red; }'
|
||||
|
||||
@@ -30,8 +30,16 @@ export interface CustomConfig {
|
||||
categories: number[]
|
||||
|
||||
isNSFW: boolean
|
||||
defaultClientRoute: string
|
||||
defaultNSFWPolicy: NSFWPolicyType
|
||||
|
||||
defaultClientRoute: string
|
||||
defaultTrendingRoute: string
|
||||
pages: {
|
||||
hot: {
|
||||
enabled: boolean
|
||||
}
|
||||
}
|
||||
|
||||
customizations: {
|
||||
javascript?: string
|
||||
css?: string
|
||||
|
||||
@@ -36,9 +36,15 @@ export interface ServerConfig {
|
||||
instance: {
|
||||
name: string
|
||||
shortDescription: string
|
||||
defaultClientRoute: string
|
||||
isNSFW: boolean
|
||||
defaultNSFWPolicy: NSFWPolicyType
|
||||
defaultClientRoute: string
|
||||
defaultTrendingRoute: string
|
||||
pages: {
|
||||
hot: {
|
||||
enabled: boolean
|
||||
}
|
||||
}
|
||||
customizations: {
|
||||
javascript: string
|
||||
css: string
|
||||
|
||||
Reference in New Issue
Block a user