diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-07-31 13:06:31 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-07-31 13:06:31 +0200 |
commit | 0ca3ab7b59edaec255aa3710fce8a9daa236b44d (patch) | |
tree | d076e2696bb531ea90ee1b4ecc312675e528a14c /lib | |
parent | c81d0b6f898c36ebcad5371caeebc0f789cb7a67 (diff) | |
download | pleroma-0ca3ab7b59edaec255aa3710fce8a9daa236b44d.tar.gz |
Remove newlines completely so mastodon doesn't bug out.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/twitter_api/utils.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/twitter_api/utils.ex b/lib/pleroma/web/twitter_api/utils.ex index f02c8ad6d..67ba5ec5c 100644 --- a/lib/pleroma/web/twitter_api/utils.ex +++ b/lib/pleroma/web/twitter_api/utils.ex @@ -15,13 +15,13 @@ defmodule Pleroma.Web.TwitterAPI.Utils do "<a href=\"#{URI.encode(href)}\" class='attachment'>#{Path.basename(href)}</a>" _ -> "" end) - Enum.join([text | attachment_text], "<br />\n") + Enum.join([text | attachment_text], "<br />") end def format_input(text, mentions) do HtmlSanitizeEx.strip_tags(text) |> Formatter.linkify - |> String.replace("\n", "<br />\n") + |> String.replace("\n", "<br />") |> add_user_links(mentions) end |