From: Haelwenn (lanodan) Monnier Date: Wed, 29 Aug 2018 18:16:01 +0000 (+0200) Subject: [Pleroma.Web.MastodonAPI.StatusView]: Remove nils from lists.json X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=0c10be87311cbe851c48218899f305e81e880741;p=akkoma [Pleroma.Web.MastodonAPI.StatusView]: Remove nils from lists.json --- diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index d50e82274..a0706cb6a 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -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(