From 834b9423da98f111cfcc15f9ba31ea97e770512c Mon Sep 17 00:00:00 2001 From: Jess Lee Date: Thu, 25 Apr 2019 15:46:40 -0400 Subject: [PATCH] Unsub users only if they have an email (#2556) --- app/services/moderator/banish_user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/moderator/banish_user.rb b/app/services/moderator/banish_user.rb index 328d1b9de..a0e853530 100644 --- a/app/services/moderator/banish_user.rb +++ b/app/services/moderator/banish_user.rb @@ -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