From 6352dffd13f0ae7db0e4b5452294567524e05a00 Mon Sep 17 00:00:00 2001 From: lain Date: Sun, 18 Feb 2018 12:51:35 +0100 Subject: [PATCH] Drop unhandle activities. --- lib/pleroma/web/activity_pub/activity_pub_controller.ex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- 2.45.2