diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-11-17 05:44:02 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-17 05:44:02 -0600 |
commit | 86750fff3fbb92298978b324592447f3205b63fa (patch) | |
tree | a9cb9fc741786f0afaa2d5326a96f8410fd5b000 | |
parent | 81c2b3e2400c67f638efdd15c1c4a060e65e3d23 (diff) |
Do not allow `Formatter` cache when normalizing text by default - fixes mentions formatting bug.
-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 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 |