Add localPosts count, also set to 0 if null
[akkoma] / lib / pleroma / web / common_api / utils.ex
index 49c4ee1eb6f566a55ca92735d9d9367aea71d8e4..3c092d524101867e916c4734266caa22c9f820fc 100644 (file)
@@ -61,6 +61,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
 
   def make_content_html(status, mentions, attachments, tags, no_attachment_links \\ false) do
     status
+    |> String.replace("\r", "")
     |> format_input(mentions, tags)
     |> maybe_add_attachments(attachments, no_attachment_links)
   end