Skip to content

Commit

Permalink
Skip deliveries to inboxes that have already been marked as unavailab…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent 0033ce9 commit 8d35fab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/workers/activitypub/delivery_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class ActivityPub::DeliveryWorker
HEADERS = { 'Content-Type' => 'application/activity+json' }.freeze

def perform(json, source_account_id, inbox_url, options = {})
return if DeliveryFailureTracker.unavailable?(inbox_url)

@options = options.with_indifferent_access
@json = json
@source_account = Account.find(source_account_id)
Expand Down

0 comments on commit 8d35fab

Please sign in to comment.