mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix error on attempting to delete an account moderation note (#18196)
Fixes #18193
This commit is contained in:
parent
74e20f22cd
commit
5c691430e5
@ -15,4 +15,7 @@
|
||||
|
||||
- if can?(:destroy, report_note)
|
||||
.report-notes__item__actions
|
||||
= table_link_to 'trash', t('admin.reports.notes.delete'), admin_report_note_path(report_note), method: :delete
|
||||
- if report_note.is_a?(AccountModerationNote)
|
||||
= table_link_to 'trash', t('admin.reports.notes.delete'), admin_account_moderation_note_path(report_note), method: :delete
|
||||
- else
|
||||
= table_link_to 'trash', t('admin.reports.notes.delete'), admin_report_note_path(report_note), method: :delete
|
||||
|
Loading…
Reference in New Issue
Block a user