diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-10 03:14:37 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-10 03:26:22 -0600 |
commit | 0dfc7b1b64b334b90e9d2edce49310e6fc295d6f (patch) | |
tree | 201a5bde7c9746db7e95c284b236084e621cdc9f /app | |
parent | 13f49590347dd350c534663c2876ab4db5613aba (diff) |
include headings `tags`, `subj`, `text`, & `desc` in normalized text so they can be individually matched in tl filters
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/text_helper.rb | 2 |
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 |