mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 09:21:11 +00:00
Use target account from group_by
result in admin/reports/index (#35920)
This commit is contained in:
parent
c00ed9c913
commit
3f1d78f3c6
|
@ -30,8 +30,7 @@
|
|||
%button.button= t('admin.accounts.search')
|
||||
= link_to t('admin.accounts.reset'), admin_reports_path, class: 'button button--dangerous'
|
||||
|
||||
- @reports.group_by(&:target_account_id).each_value do |reports|
|
||||
- target_account = reports.first.target_account
|
||||
- @reports.group_by(&:target_account).each do |target_account, reports|
|
||||
.report-card
|
||||
.report-card__profile
|
||||
= account_link_to target_account, '', path: admin_account_path(target_account.id)
|
||||
|
|
Loading…
Reference in New Issue
Block a user