projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b99eeb2
)
Drop unhandle activities.
author
lain
<lain@soykaf.club>
Sun, 18 Feb 2018 11:51:35 +0000
(12:51 +0100)
committer
lain
<lain@soykaf.club>
Sun, 18 Feb 2018 11:51:35 +0000
(12:51 +0100)
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 8080a2b1e5afcd8f5e566ca0345c650a4e378f4c..f4e5ae9eb32699d0312ef01bdc3fbbc7e8f82cfe 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub_controller.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub_controller.ex
@@
-4,6
+4,8
@@
defmodule Pleroma.Web.ActivityPub.ActivityPubController do
alias Pleroma.Web.ActivityPub.{ObjectView, UserView, Transmogrifier}
alias Pleroma.Web.ActivityPub.ActivityPub
+ require Logger
+
action_fallback :errors
def user(conn, %{"nickname" => nickname}) do
@@
-27,7
+29,11
@@
defmodule Pleroma.Web.ActivityPub.ActivityPubController do
{:ok, activity} <- Transmogrifier.handle_incoming(params) do
json(conn, "ok")
else
- e -> IO.inspect(e)
+ e ->
+ # Just drop those for now
+ Logger.info("Unhandled activity")
+ Logger.info(Poison.encode!(params, [pretty: 2]))
+ json(conn, "ok")
end
end