Show remote reports in admin UI as coming from domain rather than user (#7347)

Fix #6994
This commit is contained in:
Eugen Rochko
2018-05-04 13:26:25 +02:00
committed by GitHub
parent a78b27c7cc
commit 251bbf9728
4 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<%= raw t('application_mailer.salutation', name: display_name(@me)) %>
<%= raw t('admin_mailer.new_report.body', target: @report.target_account.acct, reporter: @report.account.acct) %>
<%= raw(@report.account.local? ? t('admin_mailer.new_report.body', target: @report.target_account.acct, reporter: @report.account.acct) : t('admin_mailer.new_report.body_remote', target: @report.target_account.acct, domain: @report.account.domain)) %>
<%= raw t('application_mailer.view')%> <%= admin_report_url(@report) %>