Cancel remote fetch jobs for deleted objects

This commit is contained in:
Mark Felder 2023-12-26 16:05:44 -05:00 committed by Floatingghost
parent 4ff22a409a
commit 132036f951

View file

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