gab-social/app/services/reject_follow_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
271 B
Ruby

# frozen_string_literal: true
class RejectFollowService < BaseService
def call(source_account, target_account)
follow_request = FollowRequest.find_by!(account: source_account, target_account: target_account)
follow_request.reject!
follow_request
end
end