]> cat aescling's git repositories - mastodon.git/commitdiff
Forgotten argument fix
authorEugen Rochko <eugen@zeonfederated.com>
Wed, 24 Feb 2016 01:15:58 +0000 (02:15 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 24 Feb 2016 01:15:58 +0000 (02:15 +0100)
app/services/process_interaction_service.rb

index 57a9bdb40edf695739d09dd3b263d64e4c395989..cb149f9abf7b90343a5f922dcde316640c879cf5 100644 (file)
@@ -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)