activitypub: tag containment checks for better error tracing
authorAriadne Conill <ariadne@dereferenced.org>
Fri, 18 Oct 2019 03:57:32 +0000 (03:57 +0000)
committerAriadne Conill <ariadne@dereferenced.org>
Fri, 18 Oct 2019 14:50:10 +0000 (14:50 +0000)
lib/pleroma/web/activity_pub/activity_pub.ex

index d631e43c6f2f5c1f235ec41cb7a0076fa6c5232a..94c467b69e72196df67da628f450b063c22b8d05 100644 (file)
@@ -132,7 +132,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
          {:ok, map} <- MRF.filter(map),
          {recipients, _, _} = get_recipients(map),
          {:fake, false, map, recipients} <- {:fake, fake, map, recipients},
-         :ok <- Containment.contain_child(map),
+         {:containment, :ok} <- {:containment, Containment.contain_child(map)},
          {:ok, map, object} <- insert_full_object(map) do
       {:ok, activity} =
         Repo.insert(%Activity{