gab-social/app/services/unblock_service.rb

11 lines
224 B
Ruby

# frozen_string_literal: true
class UnblockService < BaseService
def call(account, target_account)
return unless account.blocking?(target_account)
unblock = account.unblock!(target_account)
unblock
end
end