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

pull/2529/head
Dmitry Sandalov 2021-10-25 10:57:27 +03:00
rodzic 0e17d026f2
commit a629521c37
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 718627D28520CA65
2 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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