forked from mirrors/akkoma
use :discard instead of cancel
This commit is contained in:
parent
ceeeefc707
commit
d3b9cfb03f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue