[Pleroma.Web.MastodonAPI.StatusView]: Remove nils from lists.json

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-08-29 20:16:01 +02:00
parent 3b0e9287a5
commit 0c10be8731
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

@ -34,6 +34,7 @@ def render("index.json", opts) do
"status.json",
Map.put(opts, :replied_to_activities, replied_to_activities)
)
|> Enum.filter(fn x -> not is_nil(x) end)
end
def render(