Skip to content
This repository has been archived by the owner on Dec 21, 2023. 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 authored Nov 27, 2018
1 parent 81f96c9 commit 1195560
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 1195560

Please sign in to comment.