remove email notification for admin and moderation actions

This commit is contained in:
Rob Colbert 2019-08-01 08:15:46 -04:00
parent 4d458d5778
commit f7e8d8c344
1 changed files with 0 additions and 7 deletions

View File

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