0
0
Fork 0

Process favourites, reblogs and replies from Salmon

This commit is contained in:
Eugen Rochko 2016-02-24 00:57:47 +01:00
parent ee73d35eea
commit 79baf2fd99
4 changed files with 45 additions and 24 deletions

View file

@ -15,7 +15,7 @@ class Account < ActiveRecord::Base
has_many :followers, through: :passive_relationships, source: :account
def follow!(other_account)
self.active_relationships.create!(target_account: other_account)
self.active_relationships.first_or_create!(target_account: other_account)
end
def unfollow!(other_account)