Initial commit
This commit is contained in:
0
app/models/.keep
Normal file
0
app/models/.keep
Normal file
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
|
0
app/models/concerns/.keep
Normal file
0
app/models/concerns/.keep
Normal file
3
app/models/status.rb
Normal file
3
app/models/status.rb
Normal file
@ -0,0 +1,3 @@
|
||||
class Status < ActiveRecord::Base
|
||||
belongs_to :account, inverse_of: :statuses
|
||||
end
|
Reference in New Issue
Block a user