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

index 009260d3f2b43d46183f59a56df8944b0d0656eb..0256417228cc7411dce90aa9b4ad6ed0d92c94f1 100644 (file)
@@ -26,10 +26,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
 
   plug(
     Pleroma.Plugs.Cache,
-    [
-      query_params: false,
-      tracking_fun: &Pleroma.Web.ActivityPub.ActivityPubController.track_object_fetch/2
-    ]
+    [query_params: false, tracking_fun: &__MODULE__.track_object_fetch/2]
     when action in [:activity, :object]
   )