|
|
@ -27,6 +27,7 @@ class Pubsubhubbub::DeliveryWorker |
|
|
|
|
|
|
|
|
|
|
|
raise Mastodon::UnexpectedResponseError, payload_delivery unless response_successful? |
|
|
|
raise Mastodon::UnexpectedResponseError, payload_delivery unless response_successful? |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
payload_delivery.connection&.close |
|
|
|
subscription.touch(:last_successful_delivery_at) |
|
|
|
subscription.touch(:last_successful_delivery_at) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
@ -37,7 +38,7 @@ class Pubsubhubbub::DeliveryWorker |
|
|
|
def callback_post_payload |
|
|
|
def callback_post_payload |
|
|
|
request = Request.new(:post, subscription.callback_url, body: payload) |
|
|
|
request = Request.new(:post, subscription.callback_url, body: payload) |
|
|
|
request.add_headers(headers) |
|
|
|
request.add_headers(headers) |
|
|
|
request.perform.flush |
|
|
|
request.perform |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def blocked_domain? |
|
|
|
def blocked_domain? |
|
|
|