From: beatrix Date: Wed, 10 May 2017 18:32:59 +0000 (-0400) Subject: fix a regression introduced by e2491680e696d2c285a798ec4c66b26d2748df66 (#2966) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=57a3d71c90844a140ee8d6c1cdded67a4565c6ca;p=mastodon.git fix a regression introduced by e2491680e696d2c285a798ec4c66b26d2748df66 (#2966) that caused user pages to break when showing toots with CWs --- diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb index 7b5b8bab4..5b008278c 100644 --- a/app/lib/formatter.rb +++ b/app/lib/formatter.rb @@ -29,9 +29,10 @@ class Formatter return reformat(status.spoiler_text) unless status.local? html = status.spoiler_text - html = encode(html) + html = encode_and_link_urls(html) + + html = simple_format(html, {}, sanitize: false) html = html.delete("\n") - html = link_hashtags(html) html.html_safe # rubocop:disable Rails/OutputSafety end