mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FIX: Reset watched site settings when default locale changes
Some site settings (e.g. `unicode_username_character_whitelist`) depend on the default locale, so we need to reset the watched settings when the locale changes.
This commit is contained in:
@ -112,6 +112,7 @@ class SiteSetting < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
WATCHED_SETTINGS ||= [
|
WATCHED_SETTINGS ||= [
|
||||||
|
:default_locale,
|
||||||
:attachment_content_type_blacklist,
|
:attachment_content_type_blacklist,
|
||||||
:attachment_filename_blacklist,
|
:attachment_filename_blacklist,
|
||||||
:unicode_username_character_whitelist,
|
:unicode_username_character_whitelist,
|
||||||
|
Reference in New Issue
Block a user