about summary refs log tree commit diff
path: root/app/models/account.rb
blob: c0b153794dd90de9aaa95ec8759cf6e8b15684ea (plain) (blame)
1
2
3
4
5
6
7
class Account < ActiveRecord::Base
  has_many :statuses, inverse_of: :account

  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)
  end
end