Apply suggestion to lib/pleroma/web/activity_pub/activity_pub_controller.ex
This commit is contained in:
parent
3896a51b8a
commit
2784962dba
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ defp maybe_set_tracking_data(conn, %Activity{data: %{"type" => "Create"}} = acti
|
||||||
assign(conn, :tracking_fun_data, object_id)
|
assign(conn, :tracking_fun_data, object_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp maybe_set_tracking_data(conn, _activity), do: assign(conn, :tracking_fun_data, nil)
|
defp maybe_set_tracking_data(conn, _activity), do: conn
|
||||||
|
|
||||||
defp set_cache_ttl_for(conn, %Activity{object: object}) do
|
defp set_cache_ttl_for(conn, %Activity{object: object}) do
|
||||||
set_cache_ttl_for(conn, object)
|
set_cache_ttl_for(conn, object)
|
||||||
|
|
Loading…
Reference in a new issue