Publisher jobs will not retry if the error received is a 400

This commit is contained in:
Mark Felder 2024-07-20 21:21:21 -04:00
parent 776b069a04
commit e509519db4
2 changed files with 2 additions and 0 deletions

View file

@ -0,0 +1 @@
Publisher jobs will not retry if the error received is a 400

View file

@ -123,6 +123,7 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
Logger.error("Publisher failed to inbox #{inbox} with status #{code}")
case response do
%{status: 400} -> {:cancel, :bad_request}
%{status: 403} -> {:cancel, :forbidden}
%{status: 404} -> {:cancel, :not_found}
%{status: 410} -> {:cancel, :not_found}