about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index fc399d69c..66345b5ab 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -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)