Add defensive check to AfterUnallowDomainService (#37744)

Co-authored-by: Your Name <you@example.com>
This commit is contained in:
ShleeandYour Name authored and GitHub committed 2026-02-05 14:13:56 +00:00
1 parent d2dca826dd
commit ecdc7ff3f9
1 file changed
+3 -1
+3 -1
View File
@@ -2,7 +2,9 @@
class AfterUnallowDomainService < BaseService
def call(domain)
Account.where(domain: domain).find_each do |account|
return if domain.blank?
Account.remote.where(domain: domain).find_each do |account|
DeleteAccountService.new.call(account, reserve_username: false)
end
end