Merge branch 'safe-render-activities' into 'develop'
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>
Mon, 28 Jan 2019 11:48:03 +0000 (11:48 +0000)
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>
Mon, 28 Jan 2019 11:48:03 +0000 (11:48 +0000)
remove unnecessary filter (re !723)

See merge request pleroma/pleroma!729

lib/pleroma/web/mastodon_api/views/status_view.ex

index 0f26794441e78a03ece52daadf840d1b97ca6ff0..ddfe6788cd5a0b864bb320e29bf1eedbd4c1ad22 100644 (file)
@@ -54,7 +54,6 @@ 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(