about summary refs log tree commit diff
path: root/app/services/process_interaction_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-19 00:02:39 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-19 00:02:39 +0100
commit580b91c38740620488816755a5ccb2ec16ff8b1c (patch)
treeff616dc6d0ab2b8d3047c3f108d17e6010d77bc5 /app/services/process_interaction_service.rb
parent48aeacd5f985f2c61262686170db5776982dce19 (diff)
Fix more subtle bugs with first_or_create
Diffstat (limited to 'app/services/process_interaction_service.rb')
-rw-r--r--app/services/process_interaction_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/process_interaction_service.rb b/app/services/process_interaction_service.rb
index 43c8ca4fd..cdc720083 100644
--- a/app/services/process_interaction_service.rb
+++ b/app/services/process_interaction_service.rb
@@ -62,7 +62,7 @@ class ProcessInteractionService < BaseService
   end
 
   def favourite!(xml, from_account)
-    status(xml).favourites.first_or_create!(account: from_account)
+    status(xml).favourites.where(account: from_account).first_or_create!(account: from_account)
   end
 
   def add_post!(body, account)