From 8cbda7c0ee3694fdc86ebde89ac26e3c3695e89d Mon Sep 17 00:00:00 2001 From: lain Date: Sat, 31 Mar 2018 21:09:58 +0200 Subject: [PATCH] Modify newlines. --- 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 ede99a738..bf87e51ec 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(activity.data["object"]["content"])) + "\r\n" <> info(HtmlSanitizeEx.strip_tags(String.replace(activity.data["object"]["content"], "
", "\n")) end) |> Enum.join("\r\n") end