diff --git a/lib/pleroma/workers/receiver_worker.ex b/lib/pleroma/workers/receiver_worker.ex index b8905deb5..9c3d8d1c2 100644 --- a/lib/pleroma/workers/receiver_worker.ex +++ b/lib/pleroma/workers/receiver_worker.ex @@ -12,8 +12,8 @@ def perform(%Job{args: %{"op" => "incoming_ap_doc", "params" => params}}) 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