Add status_references to full-text search target

This commit is contained in:
KMY 2023-08-25 17:51:49 +09:00
parent bde0ddaca6
commit 3a5b8819d6
3 changed files with 13 additions and 0 deletions

View file

@ -268,6 +268,10 @@ class Status < ApplicationRecord
preloadable_poll.present?
end
def with_status_reference?
reference_objects.any?
end
def non_sensitive_with_media?
!sensitive? && with_media?
end