mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
FIX: SpamRulesEnforcer should use default locale
This commit is contained in:
parent
cc851af750
commit
5ed582551a
@ -12,8 +12,10 @@ class SpamRulesEnforcer
|
||||
end
|
||||
|
||||
def enforce!
|
||||
SpamRule::AutoSilence.new(@user).perform if @user
|
||||
SpamRule::FlagSockpuppets.new(@post).perform if @post
|
||||
I18n.with_locale(SiteSetting.default_locale) do
|
||||
SpamRule::AutoSilence.new(@user).perform if @user
|
||||
SpamRule::FlagSockpuppets.new(@post).perform if @post
|
||||
end
|
||||
true
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user