Change deletes to preserve soft-deleted statuses in unresolved reports (#11805)
Change all account actions except "none" to resolve all unresolved reports Refactor `SuspendAccountService` to be more readable
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
class UnallowDomainService < BaseService
|
||||
def call(domain_allow)
|
||||
Account.where(domain: domain_allow.domain).find_each do |account|
|
||||
SuspendAccountService.new.call(account, destroy: true)
|
||||
SuspendAccountService.new.call(account, reserve_username: false)
|
||||
end
|
||||
|
||||
domain_allow.destroy
|
||||
|
Reference in New Issue
Block a user