mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Feature Request: Localization for trending (remove region from server config)
This commit is contained in:
parent
0e17d026f2
commit
a629521c37
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue