FIX: SpamRulesEnforcer should use default locale
This commit is contained in:
parent
cc851af750
commit
5ed582551a
|
@ -12,8 +12,10 @@ class SpamRulesEnforcer
|
||||||
end
|
end
|
||||||
|
|
||||||
def enforce!
|
def enforce!
|
||||||
|
I18n.with_locale(SiteSetting.default_locale) do
|
||||||
SpamRule::AutoSilence.new(@user).perform if @user
|
SpamRule::AutoSilence.new(@user).perform if @user
|
||||||
SpamRule::FlagSockpuppets.new(@post).perform if @post
|
SpamRule::FlagSockpuppets.new(@post).perform if @post
|
||||||
|
end
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue