Apply suggestion to lib/pleroma/web/activity_pub/activity_pub_controller.ex

This commit is contained in:
rinpatch 2019-09-13 10:09:46 +00:00
parent fb96facc32
commit 5170170483

View file

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