diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-07-02 00:59:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-02 00:59:53 +0200 |
commit | bc60d794f8411daa3c4c1541fb373309e4c029b6 (patch) | |
tree | 812fcc13fa97c3ec445f45b1c38eb9981b6a4542 /app | |
parent | dc88d226e1fdb20499d6e81838b81894b2d0be2d (diff) |
Change ActivityPub::DeliveryWorker to not retry HTTP 501 errors (#11233)
Diffstat (limited to 'app')
-rw-r--r-- | app/workers/activitypub/delivery_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/activitypub/delivery_worker.rb b/app/workers/activitypub/delivery_worker.rb index 79f1e8153..818fd8f5d 100644 --- a/app/workers/activitypub/delivery_worker.rb +++ b/app/workers/activitypub/delivery_worker.rb @@ -54,7 +54,7 @@ class ActivityPub::DeliveryWorker end def response_error_unsalvageable?(response) - (400...500).cover?(response.code) && ![401, 408, 429].include?(response.code) + response.code == 501 || ((400...500).cover?(response.code) && ![401, 408, 429].include?(response.code)) end def failure_tracker |