Unsub users only if they have an email (#2556)
This commit is contained in:
parent
c1456ee9d6
commit
834b9423da
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ module Moderator
|
|||
end
|
||||
|
||||
def banish
|
||||
user.unsubscribe_from_newsletters
|
||||
user.unsubscribe_from_newsletters if user.email?
|
||||
remove_profile_info
|
||||
handle_user_status("Ban", "spam account")
|
||||
delete_user_activity
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue