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

This commit is contained in:
Dmitry Sandalov 2021-10-25 10:57:27 +03:00
parent 0e17d026f2
commit a629521c37
No known key found for this signature in database
GPG Key ID: 718627D28520CA65
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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