diff options
author | Jeong Arm <kjwonmail@gmail.com> | 2021-12-30 16:41:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-30 08:41:09 +0100 |
commit | d3db2eb7fb17e94ace3fc648153f14178e707830 (patch) | |
tree | fd0c068aafd89a65c40a5b8030e0fd861259710f | |
parent | 37e80994f81bdb07e31f1a55cd37c967822a1a2a (diff) |
Remove custom emojis on domain purge (#17210)
-rw-r--r-- | app/services/purge_domain_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |