Removed AdminMailer emails for reports and pending accounts

• Removed:
- AdminMailer emails for reports and pending accounts
This commit is contained in:
mgabdev
2020-05-28 19:30:37 -04:00
parent 536c94e625
commit ce69d939b7
2 changed files with 0 additions and 19 deletions

View File

@@ -9,7 +9,6 @@ class ReportService < BaseService
@options = options
create_report!
notify_staff!
forward_to_origin! if !@target_account.local? && ActiveModel::Type::Boolean.new.cast(@options[:forward])
@report
@@ -26,15 +25,6 @@ class ReportService < BaseService
)
end
def notify_staff!
return if @report.unresolved_siblings?
User.staff.includes(:account).each do |u|
next unless u.allows_report_emails?
AdminMailer.new_report(u.account, @report).deliver_later
end
end
def forward_to_origin!
ActivityPub::DeliveryWorker.perform_async(
payload,