Change default of notify_mods_when_user_blocked to false
This commit is contained in:
parent
71c1b8b9b9
commit
cde631cbd1
|
@ -67,7 +67,7 @@ class SiteSetting < ActiveRecord::Base
|
|||
|
||||
setting(:num_flags_to_block_new_user, 3)
|
||||
setting(:num_users_to_block_new_user, 3)
|
||||
setting(:notify_mods_when_user_blocked, true)
|
||||
setting(:notify_mods_when_user_blocked, false)
|
||||
|
||||
# used mainly for dev, force hostname for Discourse.base_url
|
||||
# You would usually use multisite for this
|
||||
|
|
|
@ -122,6 +122,7 @@ describe SpamRulesEnforcer do
|
|||
end
|
||||
|
||||
it 'sends private message to moderators' do
|
||||
SiteSetting.stubs(:notify_mods_when_user_blocked).returns(true)
|
||||
moderator = Fabricate(:moderator)
|
||||
GroupMessage.expects(:create).with do |group, msg_type, params|
|
||||
group == Group[:moderators].name and msg_type == :user_automatically_blocked and params[:user].id == user.id
|
||||
|
|
Loading…
Reference in New Issue