From d3b9cfb03f30cf62666a2206a3b3d30cb53ad17d Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Thu, 11 Aug 2022 19:17:50 +0100 Subject: [PATCH] use :discard instead of cancel --- lib/pleroma/workers/receiver_worker.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ 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 -- 2.45.2