Add status_references to full-text search target
This commit is contained in:
parent
bde0ddaca6
commit
3a5b8819d6
3 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue