Add ability to mark statuses as sensitive from reports in admin UI (#17668)

* Add ability to mark statuses as sensitive from reports in admin UI

* Allow mark as sensitive action on statuses with preview cards
This commit is contained in:
Eugen Rochko
2022-03-01 22:20:29 +01:00
committed by GitHub
parent 14919fe11e
commit 25d3dc4373
9 changed files with 81 additions and 16 deletions

View File

@@ -231,6 +231,10 @@ class Status < ApplicationRecord
media_attachments.any?
end
def with_preview_card?
preview_cards.any?
end
def non_sensitive_with_media?
!sensitive? && with_media?
end