logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

admin_mailer.rb (425B)


  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