Preserve newlines in messages.

This commit is contained in:
Roger Braun 2017-04-16 11:51:00 +02:00
commit b41f3eff84
2 changed files with 3 additions and 2 deletions

View file

@ -13,6 +13,7 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
context = ActivityPub.generate_context_id
content = HtmlSanitizeEx.strip_tags(data["status"])
|> String.replace("\n", "<br>")
mentions = parse_mentions(content)