]> cat aescling's git repositories - mastodon.git/commitdiff
Hotfix remote status formatting (#2543)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 27 Apr 2017 21:37:22 +0000 (23:37 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Apr 2017 21:37:22 +0000 (23:37 +0200)
app/lib/formatter.rb

index 5ae6238d9db016c3bc97e961484e4b64ed4634f4..6d0828a8d7ded652c435319fe6400aadb79d33e3 100644 (file)
@@ -23,7 +23,7 @@ class Formatter
   end
 
   def reformat(html)
-    sanitize(html, Sanitize::Config::MASTODON_STRICT)
+    sanitize(html, Sanitize::Config::MASTODON_STRICT).html_safe # rubocop:disable Rails/OutputSafety
   end
 
   def plaintext(status)