use :discard instead of cancel
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Thu, 11 Aug 2022 18:17:50 +0000 (19:17 +0100)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Thu, 11 Aug 2022 18:17:50 +0000 (19:17 +0100)
lib/pleroma/workers/receiver_worker.ex

index b8905deb59fefe8425bb7fe0149fd8f768886db5..9c3d8d1c2b87b096cddce3a02598e87e14a66a40 100644 (file)
@@ -12,8 +12,8 @@ defmodule Pleroma.Workers.ReceiverWorker do
     with {:ok, res} <- Federator.perform(:incoming_ap_doc, params) do
       {:ok, res}
     else
-      {:error, :origin_containment_failed} -> {:cancel, :origin_containment_failed}
-      {:error, {:reject, reason}} -> {:cancel, reason}
+      {:error, :origin_containment_failed} -> {:discard, :origin_containment_failed}
+      {:error, {:reject, reason}} -> {:discard, reason}
       e -> e
     end
   end