From 86525e3a345d79b3ab3dcece72e6f6bc8f7af961 Mon Sep 17 00:00:00 2001 From: lain Date: Sat, 31 Mar 2018 21:14:33 +0200 Subject: [PATCH] Use correct linefeed. --- lib/pleroma/gopher/server.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def render_activities(activities) 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