logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: b051e68bb025417738579b027e4b039ffb9b19da
parent ef2ada59e0b4a1b203b6edd1969518f63bf5eff5
Author: Mark Felder <feld@feld.me>
Date:   Fri, 12 Jul 2024 10:15:02 -0400

Discard Remote Fetcher jobs which errored due to an MRF rejection

Diffstat:

Achangelog.d/oban-fetcher-rejected.change1+
Mlib/pleroma/workers/remote_fetcher_worker.ex3+++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/changelog.d/oban-fetcher-rejected.change b/changelog.d/oban-fetcher-rejected.change @@ -0,0 +1 @@ +Discard Remote Fetcher jobs which errored due to an MRF rejection diff --git a/lib/pleroma/workers/remote_fetcher_worker.ex b/lib/pleroma/workers/remote_fetcher_worker.ex @@ -13,6 +13,9 @@ defmodule Pleroma.Workers.RemoteFetcherWorker do {:ok, _object} -> :ok + {:rejected, reason} -> + {:discard, reason} + {:error, :forbidden} -> {:discard, :forbidden}