Unsub users only if they have an email (#2556)

This commit is contained in:
Jess Lee 2019-04-25 15:46:40 -04:00 committed by Mac Siri
parent c1456ee9d6
commit 834b9423da

View file

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