Merge pull request 'Don't strip newlines in pre' (#709) from snan/akkoma:pre into develop
Some checks are pending
ci/woodpecker/push/build-amd64 Pipeline is pending
ci/woodpecker/push/build-arm64 Pipeline is pending
ci/woodpecker/push/docs Pipeline is pending
ci/woodpecker/push/lint Pipeline is pending
ci/woodpecker/push/test Pipeline is pending

Reviewed-on: #709
This commit is contained in:
floatingghost 2024-04-24 17:00:34 +00:00
commit 80e1c094c7

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: ""