From 4bb8969b6919b2f5cbb8f379cc0f3672fbba497d Mon Sep 17 00:00:00 2001 From: noellabo Date: Thu, 4 Jun 2020 05:10:21 +0900 Subject: [PATCH] Add a quote URL to the search target string --- app/models/status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/status.rb b/app/models/status.rb index 9d60db46b..af294825c 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -245,7 +245,7 @@ class Status < ApplicationRecord end def index_text - @index_text ||= [spoiler_text, Formatter.instance.plaintext(self)].concat(media_attachments.map(&:description)).concat(preloadable_poll ? preloadable_poll.options : []).join("\n\n") + @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 def replies_count