projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05f8a06
)
Apply suggestion to lib/pleroma/web/activity_pub/activity_pub_controller.ex
author
rinpatch
<rinpatch@sdf.org>
Fri, 13 Sep 2019 15:25:15 +0000
(15:25 +0000)
committer
rinpatch
<rinpatch@sdf.org>
Fri, 13 Sep 2019 15:25:15 +0000
(15:25 +0000)
lib/pleroma/web/activity_pub/activity_pub_controller.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/activity_pub_controller.ex
b/lib/pleroma/web/activity_pub/activity_pub_controller.ex
index 70d4a5baf319d975625819d227a361d76df893a8..01b34fb1d475df01dc3d2ce5f87f762e359360e8 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub_controller.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub_controller.ex
@@
-71,6
+71,8
@@
defmodule Pleroma.Web.ActivityPub.ActivityPubController do
end
end
+ def track_object_fetch(conn, nil), do: conn
+
def track_object_fetch(conn, object_id) do
with %{assigns: %{user: %User{id: user_id}}} <- conn do
Delivery.create(object_id, user_id)