0
0
Fork 0

OStatus2 and Goldfinger gems now have timeouts for requests

This commit is contained in:
Eugen Rochko 2016-09-20 01:10:51 +02:00
parent 059ebbf48d
commit 1cfc9aa20e
3 changed files with 8 additions and 3 deletions

View file

@ -82,7 +82,7 @@ class Account < ApplicationRecord
end
def subscription(webhook_url)
@subscription ||= OStatus2::Subscription.new(self.remote_url, secret: self.secret, token: self.verify_token, webhook: webhook_url, hub: self.hub_url)
OStatus2::Subscription.new(self.remote_url, secret: self.secret, token: self.verify_token, webhook: webhook_url, hub: self.hub_url)
end
def ping!(atom_url, hubs)