diff --git a/app/models/status.rb b/app/models/status.rb index 5e1be3cb8..847921ac2 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -229,11 +229,7 @@ class Status < ApplicationRecord fields = [spoiler_text, text] 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) : []) - 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") + @emojis = CustomEmoji.from_text(fields.join(' '), account.domain) end def replies_count