mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Skip deliveries to inboxes that have already been marked as unavailable (#9358)
This commit is contained in:
parent
4cc9ada971
commit
6cf5716ece
@ -11,6 +11,8 @@ class ActivityPub::DeliveryWorker
|
|||||||
HEADERS = { 'Content-Type' => 'application/activity+json' }.freeze
|
HEADERS = { 'Content-Type' => 'application/activity+json' }.freeze
|
||||||
|
|
||||||
def perform(json, source_account_id, inbox_url, options = {})
|
def perform(json, source_account_id, inbox_url, options = {})
|
||||||
|
return if DeliveryFailureTracker.unavailable?(inbox_url)
|
||||||
|
|
||||||
@options = options.with_indifferent_access
|
@options = options.with_indifferent_access
|
||||||
@json = json
|
@json = json
|
||||||
@source_account = Account.find(source_account_id)
|
@source_account = Account.find(source_account_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user