[Pleroma.Web.MastodonAPI.StatusView]: Remove nils from lists.json
This commit is contained in:
parent
3b0e9287a5
commit
0c10be8731
@ -34,6 +34,7 @@ def render("index.json", opts) do
|
|||||||
"status.json",
|
"status.json",
|
||||||
Map.put(opts, :replied_to_activities, replied_to_activities)
|
Map.put(opts, :replied_to_activities, replied_to_activities)
|
||||||
)
|
)
|
||||||
|
|> Enum.filter(fn x -> not is_nil(x) end)
|
||||||
end
|
end
|
||||||
|
|
||||||
def render(
|
def render(
|
||||||
|
Loading…
Reference in New Issue
Block a user