mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-28 16:07:51 +00:00
Only show sensitive media disabled warning if there are statuses associated with the report
This commit is contained in:
parent
2459190a5e
commit
ec2ce1a822
|
@ -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