commit: c6b38441f15a4f3bb925bc4ffc68ac8930bc29b2
parent 67dd81e8254576950fc20ed84d3da3a3d24c1706
Author: Mark Felder <feld@feld.me>
Date: Tue, 26 Dec 2023 16:05:44 -0500
Cancel remote fetch jobs for deleted objects
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/pleroma/workers/remote_fetcher_worker.ex b/lib/pleroma/workers/remote_fetcher_worker.ex
@@ -18,6 +18,9 @@ defmodule Pleroma.Workers.RemoteFetcherWorker do
{:error, reason = "Object fetch has been denied"} ->
{:cancel, reason}
+ {:error, reason = "Object has been deleted"} ->
+ {:cancel, reason}
+
_ ->
:error
end