Gab-Social/app/services/unfavourite_service.rb
mgabdev 4100f3dd63 Removed unused ostatus, activitypub actions from service code
• Removed:
- unused ostatus, activitypub actions from service code
2020-11-09 12:25:14 -06:00

10 lines
214 B
Ruby

# frozen_string_literal: true
class UnfavouriteService < BaseService
def call(account, status)
favourite = Favourite.find_by!(account: account, status: status)
favourite.destroy!
favourite
end
end