Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2022-03-02 18:02:48 +01:00
189 changed files with 2586 additions and 1444 deletions

View File

@@ -238,6 +238,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