CommonAPI post: kill \r with fire

This commit is contained in:
William Pitcock 2018-04-18 20:30:59 +00:00
parent b586ead6b8
commit ee6f15529d
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ def to_for_user_and_mentions(user, mentions, inReplyTo, "direct") do
def make_content_html(status, mentions, attachments, tags, no_attachment_links \\ false) do
status
|> String.replace("\r", "")
|> format_input(mentions, tags)
|> maybe_add_attachments(attachments, no_attachment_links)
end