Initial commit
This commit is contained in:
commit
9c4856bdb1
73 changed files with 1393 additions and 0 deletions
7
app/models/account.rb
Normal file
7
app/models/account.rb
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue