Commit df63461f authored by Eugen Rochko's avatar Eugen Rochko

Add handler for salmons of undoing favourites

parent 720ff552
......@@ -39,6 +39,8 @@ class ProcessInteractionService < BaseService
unfollow!(account, target_account)
when :favorite
favourite!(xml, account)
when :unfavorite
unfavourite!(xml, account)
when :post
add_post!(body, account) if mentions_account?(xml, target_account)
when :share
......@@ -121,6 +123,12 @@ class ProcessInteractionService < BaseService, favourite)
def unfavourite!(xml, from_account)
current_status = status(xml)
favourite = current_status.favourites.where(account: from_account).first
def add_post!(body, account), account)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment