From: Eugen Rochko Date: Mon, 21 May 2018 15:33:20 +0000 (+0200) Subject: Display only domain of report account if remote under comment (#7574) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=40ef46dbeff676827d1ba3483f9f6f72b17bca89;p=mastodon.git Display only domain of report account if remote under comment (#7574) --- diff --git a/app/views/admin/reports/show.html.haml b/app/views/admin/reports/show.html.haml index c9ebc0415..b13bb5303 100644 --- a/app/views/admin/reports/show.html.haml +++ b/app/views/admin/reports/show.html.haml @@ -75,7 +75,11 @@ .speech-bubble .speech-bubble__bubble= simple_format(@report.comment.presence || t('admin.reports.comment.none')) .speech-bubble__owner - = admin_account_link_to @report.account + - if @report.account.local? + = admin_account_link_to @report.account + - else + = @report.account.domain + %br/ %time.formatted{ datetime: @report.created_at.iso8601 } - unless @report.statuses.empty?