FIX: SpamRulesEnforcer should use default locale

This commit is contained in:
Gerhard Schlager 2018-08-20 15:08:12 +02:00
parent cc851af750
commit 5ed582551a

View File

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