4100f3dd63
• Removed: - unused ostatus, activitypub actions from service code
10 lines
214 B
Ruby
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
|