Feature Request: Localization for trending (remove region from server config)

pull/2529/head
Dmitry Sandalov 3 years ago
parent 0e17d026f2
commit a629521c37
No known key found for this signature in database
GPG Key ID: 718627D28520CA65

@ -73,7 +73,6 @@ class Config
property captcha_enabled : Bool = true property captcha_enabled : Bool = true
property login_enabled : Bool = true property login_enabled : Bool = true
property registration_enabled : Bool = true property registration_enabled : Bool = true
property region : String?
property statistics_enabled : Bool = false property statistics_enabled : Bool = false
property admins : Array(String) = [] of String property admins : Array(String) = [] of String
property external_port : Int32? = nil property external_port : Int32? = nil

@ -28,7 +28,7 @@ struct Preferences
@[JSON::Field(converter: Preferences::ProcessString)] @[JSON::Field(converter: Preferences::ProcessString)]
property locale : String = CONFIG.default_user_preferences.locale 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)] @[JSON::Field(converter: Preferences::ClampInt)]
property max_results : Int32 = CONFIG.default_user_preferences.max_results property max_results : Int32 = CONFIG.default_user_preferences.max_results

Loading…
Cancel
Save