Cancel the job if the signature is still invalid after a refetch of the public key

This commit is contained in:
Mark Felder 2023-12-10 12:55:41 -05:00
parent d417f73218
commit 223c1bac8d

View file

@ -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