From a629521c37d5d305af7672f51c4e154a1f704056 Mon Sep 17 00:00:00 2001 From: Dmitry Sandalov Date: Mon, 25 Oct 2021 10:57:27 +0300 Subject: [PATCH] Feature Request: Localization for trending (remove region from server config) --- src/invidious/config.cr | 1 - src/invidious/user/preferences.cr | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/invidious/config.cr b/src/invidious/config.cr index baf2702a..bacdb4ac 100644 --- a/src/invidious/config.cr +++ b/src/invidious/config.cr @@ -73,7 +73,6 @@ class Config property captcha_enabled : Bool = true property login_enabled : Bool = true property registration_enabled : Bool = true - property region : String? property statistics_enabled : Bool = false property admins : Array(String) = [] of String property external_port : Int32? = nil diff --git a/src/invidious/user/preferences.cr b/src/invidious/user/preferences.cr index fd7b4763..c15876f5 100644 --- a/src/invidious/user/preferences.cr +++ b/src/invidious/user/preferences.cr @@ -28,7 +28,7 @@ struct Preferences @[JSON::Field(converter: Preferences::ProcessString)] property locale : String = CONFIG.default_user_preferences.locale - property region : String? = CONFIG.region != nil ? CONFIG.region : CONFIG.default_user_preferences.region + property region : String? = CONFIG.default_user_preferences.region @[JSON::Field(converter: Preferences::ClampInt)] property max_results : Int32 = CONFIG.default_user_preferences.max_results