闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
425 B

  1. # frozen_string_literal: true
  2. class AdminMailer < ApplicationMailer
  3. layout 'plain_mailer'
  4. helper :stream_entries
  5. def new_report(recipient, report)
  6. @report = report
  7. @me = recipient
  8. @instance = Rails.configuration.x.local_domain
  9. locale_for_account(@me) do
  10. mail to: @me.user_email, subject: I18n.t('admin_mailer.new_report.subject', instance: @instance, id: @report.id)
  11. end
  12. end
  13. end