Modify newlines.
authorlain <lain@soykaf.club>
Sat, 31 Mar 2018 19:09:58 +0000 (21:09 +0200)
committerlain <lain@soykaf.club>
Sat, 31 Mar 2018 19:09:58 +0000 (21:09 +0200)
lib/pleroma/gopher/server.ex

index ede99a7380b64010d9b4144235d49056e37a9e2a..bf87e51ec2a300efe46e4a1b8a9979ee88119ffe 100644 (file)
@@ -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"], "<br>", "\n"))
     end)
     |> Enum.join("\r\n")
   end