blob: 2491c194f1e615c5fe67f0d72702f7ced757ba09 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
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
|