summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-07-20 21:21:21 -0400
committerMark Felder <feld@feld.me>2024-07-20 21:21:21 -0400
commite509519db4fe6c9c0c3942ebd9ccb540439fba18 (patch)
tree76c40050f0ea5bf1639b24a7f45de7ce868f776e /lib
parent776b069a04ae77a54374fca9714e8d304d93fd19 (diff)
downloadpleroma-e509519db4fe6c9c0c3942ebd9ccb540439fba18.tar.gz
pleroma-e509519db4fe6c9c0c3942ebd9ccb540439fba18.zip
Publisher jobs will not retry if the error received is a 400
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/publisher.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex
index 90c4274f2..c8bdf2250 100644
--- a/lib/pleroma/web/activity_pub/publisher.ex
+++ b/lib/pleroma/web/activity_pub/publisher.ex
@@ -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}