[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
1 changed files with 1 additions and 0 deletions

View 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(