Revert "Add a quote URL to the search target string"
This reverts commit c1a505e654
.
This commit is contained in:
parent
04c1ff5680
commit
dcee25381b
@ -229,11 +229,7 @@ class Status < ApplicationRecord
|
|||||||
fields = [spoiler_text, text]
|
fields = [spoiler_text, text]
|
||||||
fields += preloadable_poll.options unless preloadable_poll.nil?
|
fields += preloadable_poll.options unless preloadable_poll.nil?
|
||||||
|
|
||||||
@emojis = CustomEmoji.from_text(fields.join(' '), account.domain) + (quote? ? CustomEmoji.from_text([quote.spoiler_text, quote.text].join(' '), quote.account.domain) : [])
|
@emojis = CustomEmoji.from_text(fields.join(' '), account.domain)
|
||||||
end
|
|
||||||
|
|
||||||
def index_text
|
|
||||||
@index_text ||= [spoiler_text, Formatter.instance.plaintext(self)].concat(media_attachments.map(&:description)).concat(preloadable_poll ? preloadable_poll.options : []).concat(quote? ? ["QT: [#{quote.url || ActivityPub::TagManager.instance.url_for(quote)}]"] : []).filter(&:present?).join("\n\n")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def replies_count
|
def replies_count
|
||||||
|
Loading…
Reference in New Issue
Block a user