mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 12:55:56 +01:00
Only show sensitive media disabled warning if there are statuses associated with the report
This commit is contained in:
parent
2459190a5e
commit
ec2ce1a822
1 changed files with 1 additions and 1 deletions
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue