Merge branch 'bugfix/ap-uri-user-search' into 'develop'
[akkoma] / lib / pleroma / web / mastodon_api / views / status_view.ex
index d50e82274243fefffd27b0d95f2be1317cacaaa3..8ffaf8466b88202db514b8576d6b10f795d8eaa7 100644 (file)
@@ -34,6 +34,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
       "status.json",
       Map.put(opts, :replied_to_activities, replied_to_activities)
     )
+    |> Enum.filter(fn x -> not is_nil(x) end)
   end
 
   def render(
@@ -158,7 +159,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
     }
   end
 
-  def render("status.json", %{activity: %{data: %{"object" => object}} = activity} = opts) do
+  def render("status.json", _) do
     nil
   end