From: lain Date: Sat, 31 Mar 2018 19:09:58 +0000 (+0200) Subject: Modify newlines. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=8cbda7c0ee3694fdc86ebde89ac26e3c3695e89d;p=akkoma Modify newlines. --- 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 @@ 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(activity.data["object"]["content"])) + "\r\n" <> info(HtmlSanitizeEx.strip_tags(String.replace(activity.data["object"]["content"], "
", "\n")) end) |> Enum.join("\r\n") end