From: lain Date: Sat, 31 Mar 2018 19:14:33 +0000 (+0200) Subject: Use correct linefeed. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=86525e3a345d79b3ab3dcece72e6f6bc8f7af961;p=akkoma Use correct linefeed. --- diff --git a/lib/pleroma/gopher/server.ex b/lib/pleroma/gopher/server.ex index 5b714be6a..cfce4c05c 100644 --- a/lib/pleroma/gopher/server.ex +++ b/lib/pleroma/gopher/server.ex @@ -82,7 +82,7 @@ defmodule Pleroma.Gopher.Server.ProtocolHandler do link("Post ##{activity.id} by #{user.nickname}", "/notices/#{activity.id}") <> info("#{like_count} likes, #{announcement_count} repeats") <> - "\r\n" <> info(HtmlSanitizeEx.strip_tags(String.replace(activity.data["object"]["content"], "
", "\n"))) + "\r\n" <> info(HtmlSanitizeEx.strip_tags(String.replace(activity.data["object"]["content"], "
", "\r"))) end) |> Enum.join("\r\n") end