From: Eugen Rochko Date: Wed, 24 Feb 2016 01:15:58 +0000 (+0100) Subject: Forgotten argument fix X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=784b9cca6ae490216f45e55786b96c5e03257373;p=mastodon.git Forgotten argument fix --- 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)