From 59ef948640cb3c6cc268db29ef91a4f3718597e2 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 18 Nov 2019 05:09:18 -0600 Subject: Get rid of the `Formatter` cache. It isn't worth the admin headaches. --- 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 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 -- cgit