mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-13 12:31:13 +00:00
Publisher jobs will not retry if the error received is a 400
This commit is contained in:
parent
776b069a04
commit
e509519db4
2 changed files with 2 additions and 0 deletions
1
changelog.d/oban-cancel-badreq.change
Normal file
1
changelog.d/oban-cancel-badreq.change
Normal file
|
@ -0,0 +1 @@
|
|||
Publisher jobs will not retry if the error received is a 400
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue