Discard Remote Fetcher jobs which errored due to an MRF rejection

This commit is contained in:
Mark Felder 2024-07-12 10:15:02 -04:00
parent ef2ada59e0
commit b051e68bb0
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1 @@
Discard Remote Fetcher jobs which errored due to an MRF rejection

View file

@ -13,6 +13,9 @@ defmodule Pleroma.Workers.RemoteFetcherWorker do
{:ok, _object} ->
:ok
{:rejected, reason} ->
{:discard, reason}
{:error, :forbidden} ->
{:discard, :forbidden}