From 0dfc7b1b64b334b90e9d2edce49310e6fc295d6f Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 10 Dec 2019 03:14:37 -0600 Subject: include headings `tags`, `subj`, `text`, & `desc` in normalized text so they can be individually matched in tl filters --- app/helpers/text_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/helpers') diff --git a/app/helpers/text_helper.rb b/app/helpers/text_helper.rb index 67ece4f32..d85c6bbd8 100644 --- a/app/helpers/text_helper.rb +++ b/app/helpers/text_helper.rb @@ -33,6 +33,6 @@ module TextHelper end def normalize_status(status) - normalize_text("#{status.tags.pluck(:name).join(' ')}\n#{status.spoiler_text}\n#{status.local? ? Formatter.instance.format(status) : status.text}\n#{status.media_attachments.pluck(:description).join("\n")}") + normalize_text("tags #{status.tags.pluck(:name).join(' ')}\nsubj #{status.spoiler_text}\ntext #{status.local? ? Formatter.instance.format(status) : status.text}\ndesc #{status.media_attachments.pluck(:description).join("\n")}") end end -- cgit