summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-08-29 20:16:01 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2018-10-25 05:24:03 +0200
commit0c10be87311cbe851c48218899f305e81e880741 (patch)
tree3b5e77f70cbfdd5d00cd9b6def26a59e263a50ef
parent3b0e9287a5c36dea7b7a4a240a14295cb17420b4 (diff)
downloadpleroma-0c10be87311cbe851c48218899f305e81e880741.tar.gz
pleroma-0c10be87311cbe851c48218899f305e81e880741.zip
[Pleroma.Web.MastodonAPI.StatusView]: Remove nils from lists.json
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex1
1 files changed, 1 insertions, 0 deletions
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(