mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-24 23:09:38 -05:00
Feature Request: Localization for trending (remove region from server config)
This commit is contained in:
parent
0e17d026f2
commit
a629521c37
src/invidious
@ -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 New Issue
Block a user