From 9c4856bdb11fc9311ab30a97224cee3dfaec492f Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 20 Feb 2016 22:53:20 +0100 Subject: Initial commit --- app/models/account.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/models/account.rb (limited to 'app/models/account.rb') diff --git a/app/models/account.rb b/app/models/account.rb new file mode 100644 index 000000000..c0b153794 --- /dev/null +++ b/app/models/account.rb @@ -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 -- cgit