From: FloatingGhost Date: Thu, 11 Aug 2022 18:17:50 +0000 (+0100) Subject: use :discard instead of cancel X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d3b9cfb03f30cf62666a2206a3b3d30cb53ad17d;p=akkoma use :discard instead of cancel --- 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