From f7e8d8c3443af1b96598eb2990483afd09bf0658 Mon Sep 17 00:00:00 2001 From: Rob Colbert Date: Thu, 1 Aug 2019 08:15:46 -0400 Subject: [PATCH] remove email notification for admin and moderation actions --- app/models/admin/account_action.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/models/admin/account_action.rb b/app/models/admin/account_action.rb index 84c3f880..bdc412ad 100644 --- a/app/models/admin/account_action.rb +++ b/app/models/admin/account_action.rb @@ -28,7 +28,6 @@ class Admin::AccountAction process_warning! end - queue_email! process_reports! end @@ -118,12 +117,6 @@ class Admin::AccountAction Admin::SuspensionWorker.perform_async(target_account.id) end - def queue_email! - return unless warnable? - - UserMailer.warning(target_account.user, warning).deliver_later! - end - def warnable? send_email_notification && target_account.local? end