mirror of
https://github.com/mastodon/mastodon.git
synced 2026-10-01 17:18:44 -05:00
Only show sensitive media disabled warning if there are statuses associated with the report
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user