diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-11-18 05:09:18 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-18 05:09:18 -0600 |
commit | 59ef948640cb3c6cc268db29ef91a4f3718597e2 (patch) | |
tree | d0c634049981b2ef0d6f89221f0937778b0b93eb /app/helpers | |
parent | 345c6beb7e8a26e3537506ab3134c509d4ef6dc8 (diff) |
Get rid of the `Formatter` cache. It isn't worth the admin headaches.
Diffstat (limited to 'app/helpers')
-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 5244fee8d..67ece4f32 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, skip_cache: true, cache: false) : status.text}\n#{status.media_attachments.pluck(:description).join("\n")}") + 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")}") end end |