Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

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 committed Nov 30, 2018
1 parent 58108b4 commit 442f335
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 442f335

Please sign in to comment.