Prevent requeuing Remote Fetcher jobs that exceed thread depth

This commit is contained in:
Mark Felder 2023-12-27 22:28:41 -05:00
commit ad0a5deb67
5 changed files with 21 additions and 4 deletions

View file

@ -74,7 +74,7 @@ defmodule Pleroma.Object.Fetcher do
else
{:allowed_depth, false} = e ->
log_fetch_error(id, e)
{:error, "Max thread distance exceeded."}
{:error, :allowed_depth}
{:containment, reason} = e ->
log_fetch_error(id, e)