From: lain Date: Sun, 18 Feb 2018 11:51:35 +0000 (+0100) Subject: Drop unhandle activities. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=6352dffd13f0ae7db0e4b5452294567524e05a00;p=akkoma Drop unhandle activities. --- diff --git a/lib/pleroma/web/activity_pub/activity_pub_controller.ex b/lib/pleroma/web/activity_pub/activity_pub_controller.ex index 8080a2b1e..f4e5ae9eb 100644 --- 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