Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
6cf5716e
Commit
6cf5716e
authored
6 years ago
by
Eugen Rochko
Browse files
Options
Download
Email Patches
Plain Diff
Skip deliveries to inboxes that have already been marked as unavailable (#9358)
parent
4cc9ada9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/workers/activitypub/delivery_worker.rb
+2
-0
app/workers/activitypub/delivery_worker.rb
with
2 additions
and
0 deletions
+2
-0
app/workers/activitypub/delivery_worker.rb
+
2
-
0
View file @
6cf5716e
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets