Merge branch 'main' into glitch-soc/merge-upstream
This commit is contained in:
commit
6bdec0aec9
4 files changed
+12
-11
No files matched your search
@@ -160,6 +160,15 @@ class Status < ApplicationRecord
|
||||
ids.uniq
|
||||
end
|
||||
|
||||
def searchable_text
|
||||
[
|
||||
spoiler_text,
|
||||
FormattingHelper.extract_status_plain_text(self),
|
||||
preloadable_poll ? preloadable_poll.options.join("\n\n") : nil,
|
||||
ordered_media_attachments.map(&:description).join("\n\n"),
|
||||
].compact.join("\n\n")
|
||||
end
|
||||
|
||||
def reply?
|
||||
!in_reply_to_id.nil? || attributes['reply']
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user