gab-social/app/services/unblock_service.rb

11 lines
224 B
Ruby
Raw Normal View History

2019-07-02 08:10:25 +01:00
# 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