Only show sensitive media disabled warning if there are statuses associated with the report

This commit is contained in:
Emelia Smith 2024-08-17 21:11:26 +02:00
parent 2459190a5e
commit ec2ce1a822
No known key found for this signature in database

View file

@ -29,7 +29,7 @@
- if @report.comment.present?
= render 'admin/reports/comment', report: @report
- if @report.account.local? && (@report.account.user.settings['web.expand_content_warnings'] || @report.account.user.settings['web.display_media'] == 'show_all')
- if @report.account.local? && !@statuses.empty? && (@report.account.user.settings['web.expand_content_warnings'] || @report.account.user.settings['web.display_media'] == 'show_all')
.flash-message.warning= t('admin.reports.sensitive_media_explanation')
%hr.spacer/