[Pleroma.Web.MastodonAPI.StatusView]: Remove nils from lists.json
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Wed, 29 Aug 2018 18:16:01 +0000 (20:16 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Thu, 25 Oct 2018 03:24:03 +0000 (05:24 +0200)
lib/pleroma/web/mastodon_api/views/status_view.ex

index d50e82274243fefffd27b0d95f2be1317cacaaa3..a0706cb6a8f775f63d1b472eb0624b2571d5dcc5 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(