about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-24 02:15:58 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-24 02:15:58 +0100
commit784b9cca6ae490216f45e55786b96c5e03257373 (patch)
tree27c9ce004309d07cdbb36a571865e6e6257bf51d /app
parent9411e8c35a50b04ac793977a7db44488261daadc (diff)
Forgotten argument fix
Diffstat (limited to 'app')
-rw-r--r--app/services/process_interaction_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/process_interaction_service.rb b/app/services/process_interaction_service.rb
index 57a9bdb40..cb149f9ab 100644
--- a/app/services/process_interaction_service.rb
+++ b/app/services/process_interaction_service.rb
@@ -28,7 +28,7 @@ class ProcessInteractionService
       when :post
         add_post!(body, account) if mentions_account?(xml, target_account)
       when :share
-        add_post!(body, account) unless status.nil?
+        add_post!(body, account) unless status(xml).nil?
       end
     end
   end
@@ -59,7 +59,7 @@ class ProcessInteractionService
   end
 
   def favourite!(xml, from_account)
-    status.favourites.first_or_create!(account: from_account)
+    status(xml).favourites.first_or_create!(account: from_account)
   end
 
   def add_post!(body, account)