Remove order from statuses within in_batches block

This commit is contained in:
Matt Jankowski 2025-02-28 10:52:00 -05:00
parent 97c6d7829e
commit 1dfd060811

View File

@ -19,7 +19,7 @@ class Vacuum::StatusesVacuum
# as the search index, must be handled first. # as the search index, must be handled first.
statuses.direct_visibility statuses.direct_visibility
.includes(mentions: :account) .includes(mentions: :account)
.find_each(&:unlink_from_conversations!) .find_each(error_on_ignore: false, &:unlink_from_conversations!)
if Chewy.enabled? if Chewy.enabled?
remove_from_index(statuses.ids, 'chewy:queue:StatusesIndex') remove_from_index(statuses.ids, 'chewy:queue:StatusesIndex')
remove_from_index(statuses.ids, 'chewy:queue:PublicStatusesIndex') remove_from_index(statuses.ids, 'chewy:queue:PublicStatusesIndex')