0
0
Fork 0

Replace logo, fix #57 - delete/unreblog/unfavourite API, fix #45 - app

registration API
This commit is contained in:
Eugen Rochko 2016-09-26 23:55:21 +02:00
parent 210362e665
commit 7e14eefc81
27 changed files with 216 additions and 136 deletions

View file

@ -0,0 +1,12 @@
class UnfavouriteService < BaseService
def call(account, status)
favourite = Favourite.find_by!(account: account, status: status)
favourite.destroy!
unless status.local?
NotificationWorker.perform_async(favourite.stream_entry.id, status.account_id)
end
favourite
end
end