mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-17 21:04:14 +00:00
8 lines
275 B
Ruby
8 lines
275 B
Ruby
|
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
|