projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5170170
)
Apply suggestion to lib/pleroma/web/activity_pub/activity_pub_controller.ex
author
rinpatch
<rinpatch@sdf.org>
Fri, 13 Sep 2019 10:09:56 +0000
(10:09 +0000)
committer
rinpatch
<rinpatch@sdf.org>
Fri, 13 Sep 2019 10:09:56 +0000
(10:09 +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 0256417228cc7411dce90aa9b4ad6ed0d92c94f1..4bd13defbd7bed4466156c41e9fa92e323c2dce3 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub_controller.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub_controller.ex
@@
-72,9
+72,8
@@
defmodule Pleroma.Web.ActivityPub.ActivityPubController do
end
def track_object_fetch(conn, object_id) do
- case conn.assigns[:user] do
- %User{id: user_id} -> Delivery.create(object_id, user_id)
- _ -> nil
+ with %{assigns: %{user: %User{id: user_id}}} <- conn do
+ Delivery.create(object_id, user_id)
end
conn