Apply suggestion to lib/pleroma/web/activity_pub/activity_pub_controller.ex
authorrinpatch <rinpatch@sdf.org>
Fri, 13 Sep 2019 15:25:15 +0000 (15:25 +0000)
committerrinpatch <rinpatch@sdf.org>
Fri, 13 Sep 2019 15:25:15 +0000 (15:25 +0000)
lib/pleroma/web/activity_pub/activity_pub_controller.ex

index 70d4a5baf319d975625819d227a361d76df893a8..01b34fb1d475df01dc3d2ce5f87f762e359360e8 100644 (file)
@@ -71,6 +71,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
     end
   end
 
+  def track_object_fetch(conn, nil), do: conn
+
   def track_object_fetch(conn, object_id) do
     with %{assigns: %{user: %User{id: user_id}}} <- conn do
       Delivery.create(object_id, user_id)