Process favourites, reblogs and replies from Salmon
This commit is contained in:
parent
ee73d35eea
commit
79baf2fd99
4 changed files with 45 additions and 24 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue