]> cat aescling's git repositories - mastodon.git/commitdiff
fix partial path in admin/reports (#2546)
authorPatrick Figel <patrick@figel.email>
Thu, 27 Apr 2017 22:09:25 +0000 (00:09 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 27 Apr 2017 22:09:25 +0000 (00:09 +0200)
In #2505, the authorize_follow views were renamed to
authorize_follows. This change was not applied in the show view
of admin/reports, which causes a 500 when reports are viewed.

app/views/admin/reports/show.html.haml

index 3868d4fada6f718d30277a85a0c20844c0660f7c..ce5fe6cb612231f37bb359a75d8f7fc7d21f91b6 100644 (file)
@@ -4,11 +4,11 @@
 .report-accounts
   .report-accounts__item
     %strong= t('admin.reports.reported_account')
-    = render partial: 'authorize_follow/card', locals: { account: @report.target_account }
+    = render partial: 'authorize_follows/card', locals: { account: @report.target_account }
     = render partial: 'admin/accounts/card', locals: { account: @report.target_account }
   .report-accounts__item
     %strong= t('admin.reports.reported_by')
-    = render partial: 'authorize_follow/card', locals: { account: @report.account }
+    = render partial: 'authorize_follows/card', locals: { account: @report.account }
     = render partial: 'admin/accounts/card', locals: { account: @report.account }
 
 %p