account.rb 275 B

1234567
  1. class Account < ActiveRecord::Base
  2. has_many :statuses, inverse_of: :account
  3. def subscription(webhook_url)
  4. @subscription ||= OStatus2::Subscription.new(self.remote_url, secret: self.secret, token: self.verify_token, webhook: webhook_url, hub: self.hub_url)
  5. end
  6. end