Commit 8cbda7c0 authored by lain's avatar lain
Browse files

Modify newlines.

parent fe1dcf00
Pipeline #1031 failed with stage
in 1 minute and 43 seconds
......@@ -82,7 +82,7 @@ def render_activities(activities) 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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment