~cytrogen/masto-fe

ref: 7e7d6e695b5b7ef8d8c10b1d9ac79375ca1b8209 masto-fe/app/services/after_unallow_domain_service.rb -rw-r--r-- 241 bytes
7e7d6e69 — Claire Fix incorrectly keeping outdated update notices absent from the API endpoint (#27021) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class AfterUnallowDomainService < BaseService
  def call(domain)
    Account.where(domain: domain).find_each do |account|
      DeleteAccountService.new.call(account, reserve_username: false)
    end
  end
end