From 86750fff3fbb92298978b324592447f3205b63fa Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 17 Nov 2019 05:44:02 -0600 Subject: Do not allow `Formatter` cache when normalizing text by default - fixes mentions formatting bug. --- app/helpers/text_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/helpers/text_helper.rb b/app/helpers/text_helper.rb index 998473036..61a08abe4 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: true, skip_cache: true) + 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}") end end -- cgit