You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
384 B

  1. # frozen_string_literal: true
  2. class UnblockDomainService < BaseService
  3. def call(domain_block, retroactive)
  4. if retroactive
  5. if domain_block.silence?
  6. Account.where(domain: domain_block.domain).update_all(silenced: false)
  7. else
  8. Account.where(domain: domain_block.domain).update_all(suspended: false)
  9. end
  10. end
  11. domain_block.destroy
  12. end
  13. end