mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Remove unneeded reorder(nil) conditions (#32200)
This commit is contained in:
@@ -16,12 +16,12 @@ class PurgeDomainService < BaseService
|
||||
end
|
||||
|
||||
def purge_accounts!
|
||||
Account.remote.where(domain: @domain).reorder(nil).find_each do |account|
|
||||
Account.remote.where(domain: @domain).find_each do |account|
|
||||
DeleteAccountService.new.call(account, reserve_username: false, skip_side_effects: true)
|
||||
end
|
||||
end
|
||||
|
||||
def purge_emojis!
|
||||
CustomEmoji.remote.where(domain: @domain).reorder(nil).find_each(&:destroy)
|
||||
CustomEmoji.remote.where(domain: @domain).find_each(&:destroy)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user