From d3db2eb7fb17e94ace3fc648153f14178e707830 Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Thu, 30 Dec 2021 16:41:09 +0900 Subject: [PATCH] Remove custom emojis on domain purge (#17210) --- app/services/purge_domain_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/purge_domain_service.rb b/app/services/purge_domain_service.rb index e10a8f0c8..9df81f13e 100644 --- a/app/services/purge_domain_service.rb +++ b/app/services/purge_domain_service.rb @@ -5,6 +5,7 @@ class PurgeDomainService < BaseService Account.remote.where(domain: domain).reorder(nil).find_each do |account| DeleteAccountService.new.call(account, reserve_username: false, skip_side_effects: true) end + CustomEmoji.remote.where(domain: domain).reorder(nil).find_each(&:destroy) Instance.refresh end end