remove email notification for admin and moderation actions
This commit is contained in:
parent
4d458d5778
commit
f7e8d8c344
|
@ -28,7 +28,6 @@ class Admin::AccountAction
|
||||||
process_warning!
|
process_warning!
|
||||||
end
|
end
|
||||||
|
|
||||||
queue_email!
|
|
||||||
process_reports!
|
process_reports!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -118,12 +117,6 @@ class Admin::AccountAction
|
||||||
Admin::SuspensionWorker.perform_async(target_account.id)
|
Admin::SuspensionWorker.perform_async(target_account.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def queue_email!
|
|
||||||
return unless warnable?
|
|
||||||
|
|
||||||
UserMailer.warning(target_account.user, warning).deliver_later!
|
|
||||||
end
|
|
||||||
|
|
||||||
def warnable?
|
def warnable?
|
||||||
send_email_notification && target_account.local?
|
send_email_notification && target_account.local?
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue