]> cat aescling's git repositories - mastodon.git/commitdiff
Display only domain of report account if remote under comment (#7574)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 21 May 2018 15:33:20 +0000 (17:33 +0200)
committerGitHub <noreply@github.com>
Mon, 21 May 2018 15:33:20 +0000 (17:33 +0200)
app/views/admin/reports/show.html.haml

index c9ebc041583e2a60b087ec74b4232a83a0d7f3cd..b13bb530350f7c3d36bf7eb824f3b19feb8a7102 100644 (file)
 .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?