From ba5d4a849c7d7ba05f093480ae12286c4af61556 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 27 Jan 2021 17:15:21 +0100 Subject: move from trending routes to alg param --- shared/models/server/custom-config.model.ts | 15 +++++++++------ shared/models/server/server-config.model.ts | 10 ++++------ 2 files changed, 13 insertions(+), 12 deletions(-) (limited to 'shared/models') diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts index fcc29e5d7..a57237414 100644 --- a/shared/models/server/custom-config.model.ts +++ b/shared/models/server/custom-config.model.ts @@ -33,12 +33,6 @@ export interface CustomConfig { defaultNSFWPolicy: NSFWPolicyType defaultClientRoute: string - defaultTrendingRoute: string - pages: { - hot: { - enabled: boolean - } - } customizations: { javascript?: string @@ -131,6 +125,15 @@ export interface CustomConfig { } } + trending: { + videos: { + algorithms: { + enabled: string[] + default: string + } + } + } + autoBlacklist: { videos: { ofUsers: { diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index a2d93ce73..47d0e623b 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts @@ -39,12 +39,6 @@ export interface ServerConfig { isNSFW: boolean defaultNSFWPolicy: NSFWPolicyType defaultClientRoute: string - defaultTrendingRoute: string - pages: { - hot: { - enabled: boolean - } - } customizations: { javascript: string css: string @@ -180,6 +174,10 @@ export interface ServerConfig { trending: { videos: { intervalDays: number + algorithms: { + enabled: string[] + default: string + } } } -- cgit v1.2.3