Upgrade to PubSubHubbub 0.4 (removing verify_token)
This commit is contained in:
parent
a86f21cf90
commit
608a2bfffc
9 changed files with 19 additions and 19 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue