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
1 changed files with 1 additions and 4 deletions

View 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]
)