]> cat aescling's git repositories - mastodon.git/commitdiff
Newlines and paragraphs in local statuses properly formatted
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 10 Sep 2016 08:07:56 +0000 (10:07 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 10 Sep 2016 08:07:56 +0000 (10:07 +0200)
app/lib/formatter.rb

index a71cdd7607a80d16d8c727744ed0c4d91629a705..12b141e7e78d9873b371189bba7de4dd73ecf58b 100644 (file)
@@ -11,6 +11,7 @@ class Formatter
 
     html = status.text
     html = encode(html)
+    html = simple_format(html, sanitize: false)
     html = link_urls(html)
     html = link_mentions(html, status.mentions)