about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-10 03:14:37 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-10 03:26:22 -0600
commit0dfc7b1b64b334b90e9d2edce49310e6fc295d6f (patch)
tree201a5bde7c9746db7e95c284b236084e621cdc9f /app/helpers
parent13f49590347dd350c534663c2876ab4db5613aba (diff)
include headings `tags`, `subj`, `text`, & `desc` in normalized text so they can be individually matched in tl filters
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/text_helper.rb2
1 files changed, 1 insertions, 1 deletions
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