From: rinpatch Date: Fri, 13 Sep 2019 15:25:15 +0000 (+0000) Subject: Apply suggestion to lib/pleroma/web/activity_pub/activity_pub_controller.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=8900cb68aef535dbf60de87fce47d85b91909077;p=akkoma Apply suggestion to lib/pleroma/web/activity_pub/activity_pub_controller.ex --- diff --git a/lib/pleroma/web/activity_pub/activity_pub_controller.ex b/lib/pleroma/web/activity_pub/activity_pub_controller.ex index 70d4a5baf..01b34fb1d 100644 --- a/lib/pleroma/web/activity_pub/activity_pub_controller.ex +++ b/lib/pleroma/web/activity_pub/activity_pub_controller.ex @@ -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)