commit: 223c1bac8dcbfd6b2454b79077545d3465688d7f
parent d417f7321801890381de4daa53c1a78ef4650d2c
Author: Mark Felder <feld@feld.me>
Date: Sun, 10 Dec 2023 12:55:41 -0500
Cancel the job if the signature is still invalid after a refetch of the public key
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/workers/receiver_worker.ex b/lib/pleroma/workers/receiver_worker.ex
@@ -50,7 +50,7 @@ defmodule Pleroma.Workers.ReceiverWorker do
{:error, {:validate_object, reason}} -> {:cancel, reason}
{:error, {:error, {:validate, reason}}} -> {:cancel, reason}
{:error, {:reject, reason}} -> {:cancel, reason}
- {:signature, false} -> {:error, :invalid_signature}
+ {:signature, false} -> {:cancel, :invalid_signature}
{:error, {:error, reason = "Object has been deleted"}} -> {:cancel, reason}
e -> e
end