Apply suggestion to lib/pleroma/web/activity_pub/activity_pub_controller.ex
This commit is contained in:
parent
05f8a066a1
commit
8900cb68ae
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,8 @@ def object(conn, %{"uuid" => uuid}) do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def track_object_fetch(conn, nil), do: conn
|
||||||
|
|
||||||
def track_object_fetch(conn, object_id) do
|
def track_object_fetch(conn, object_id) do
|
||||||
with %{assigns: %{user: %User{id: user_id}}} <- conn do
|
with %{assigns: %{user: %User{id: user_id}}} <- conn do
|
||||||
Delivery.create(object_id, user_id)
|
Delivery.create(object_id, user_id)
|
||||||
|
|
Loading…
Reference in a new issue