diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-20 02:43:20 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-20 02:43:20 +0200 |
commit | 608a2bfffc9186e71d52e0916b54b0f513994db2 (patch) | |
tree | 3a2d900162a1fc62a0221c180404771d5c787bcc /app/models | |
parent | a86f21cf90814ef0dd6e013202fb93ee83beca86 (diff) |
Upgrade to PubSubHubbub 0.4 (removing verify_token)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/account.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index a7f31440f..bfb10ae51 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -66,7 +66,7 @@ class Account < ApplicationRecord end def subscribed? - !(self.secret.blank? || self.verify_token.blank?) + !self.subscription_expires_at.nil? end def favourited?(status) @@ -82,7 +82,7 @@ class Account < ApplicationRecord end def subscription(webhook_url) - 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, lease_seconds: 86400 * 30, webhook: webhook_url, hub: self.hub_url) end def ping!(atom_url, hubs) |