Don't strip newlines in the Atom feed
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending
ci/woodpecker/pr/build-arm64 Pipeline is pending
ci/woodpecker/pr/docs Pipeline is pending
ci/woodpecker/pr/lint Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending

This commit is contained in:
Sandra Snan 2024-03-10 13:08:54 +01:00
parent 889b57df82
commit 6116f81546
No known key found for this signature in database
GPG key ID: 9FC344CA12F1484A

View file

@ -78,9 +78,7 @@ def activity_title(%{"content" => content}, opts \\ %{}) do
end end
def activity_content(%{"content" => content}) do def activity_content(%{"content" => content}) do
content escape(content)
|> String.replace(~r/[\n\r]/, "")
|> escape()
end end
def activity_content(_), do: "" def activity_content(_), do: ""