From 81942defe915389a130f17268b4e644bf8e2c7d5 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 17 Nov 2019 14:22:33 -0600 Subject: Hardcoded disabling of `Formatter` cache in normalizer. --- app/helpers/text_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/helpers/text_helper.rb b/app/helpers/text_helper.rb index 61a08abe4..a0133be53 100644 --- a/app/helpers/text_helper.rb +++ b/app/helpers/text_helper.rb @@ -32,7 +32,7 @@ module TextHelper "#{tags.join(' ')}\n#{t.lstrip}".strip.unaccent_via_split_map end - def normalize_status(status, cache: false, skip_cache: true) - normalize_text("#{status.tags.pluck(:name).join(' ')}\n#{status.spoiler_text}\n#{status.local? ? Formatter.instance.format(status, skip_cache: skip_cache, cache: cache) : status.text}") + 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}") end end -- cgit