From 6116f815463ec66a2ee6b6df34de026b9702dfe0 Mon Sep 17 00:00:00 2001 From: Sandra Snan Date: Sun, 10 Mar 2024 13:08:54 +0100 Subject: [PATCH] Don't strip newlines in the Atom feed --- lib/pleroma/web/feed/feed_view.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pleroma/web/feed/feed_view.ex b/lib/pleroma/web/feed/feed_view.ex index 52771205e..8b0a42dc8 100644 --- a/lib/pleroma/web/feed/feed_view.ex +++ b/lib/pleroma/web/feed/feed_view.ex @@ -78,9 +78,7 @@ def activity_title(%{"content" => content}, opts \\ %{}) do end def activity_content(%{"content" => content}) do - content - |> String.replace(~r/[\n\r]/, "") - |> escape() + escape(content) end def activity_content(_), do: ""