From 40ef46dbeff676827d1ba3483f9f6f72b17bca89 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 21 May 2018 17:33:20 +0200 Subject: [PATCH] Display only domain of report account if remote under comment (#7574) --- app/views/admin/reports/show.html.haml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/admin/reports/show.html.haml b/app/views/admin/reports/show.html.haml index c9ebc04158..b13bb53035 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?