Skip to content
Snippets Groups Projects
Commit 784b9cca authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Forgotten argument fix

parent 9411e8c3
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ class ProcessInteractionService ...@@ -28,7 +28,7 @@ class ProcessInteractionService
when :post when :post
add_post!(body, account) if mentions_account?(xml, target_account) add_post!(body, account) if mentions_account?(xml, target_account)
when :share when :share
add_post!(body, account) unless status.nil? add_post!(body, account) unless status(xml).nil?
end end
end end
end end
...@@ -59,7 +59,7 @@ class ProcessInteractionService ...@@ -59,7 +59,7 @@ class ProcessInteractionService
end end
def favourite!(xml, from_account) def favourite!(xml, from_account)
status.favourites.first_or_create!(account: from_account) status(xml).favourites.first_or_create!(account: from_account)
end end
def add_post!(body, account) def add_post!(body, account)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment