1
0
Fork 0
forked from fedi/mastodon
mastodon/app/lib/vacuum
Kaspar V ae62e5fa53
Fix/remove calling private method with send in model (#22951)
* fix(status): remove send usage for private unlink_from_conversations

- make unlink_from_conversations public method
- rename unlink_from_conversations to unlink_from_conversations!
- fix send call on private method in statuses_vacuum and batched_remove_status_service

* fix(feeds_vacuum): replace find_in_batches with in_batches

because active record query results should be a little more efficient than
itterating with map and each. Postgres can grasp such lists of ids much quicker
than ruby can.
Will probably make allmost no difference, but cannot hurt either.
2023-01-11 21:57:24 +01:00
..
access_tokens_vacuum.rb Add retention policy for cached content and media (#19232) 2022-09-27 03:08:19 +02:00
backups_vacuum.rb Add retention policy for cached content and media (#19232) 2022-09-27 03:08:19 +02:00
feeds_vacuum.rb Fix/remove calling private method with send in model (#22951) 2023-01-11 21:57:24 +01:00
media_attachments_vacuum.rb Fix vacuum scheduler missing lock, locks never expiring (#19458) 2022-10-26 12:10:48 +02:00
preview_cards_vacuum.rb Fix vacuum scheduler missing lock, locks never expiring (#19458) 2022-10-26 12:10:48 +02:00
statuses_vacuum.rb Fix/remove calling private method with send in model (#22951) 2023-01-11 21:57:24 +01:00
system_keys_vacuum.rb Add retention policy for cached content and media (#19232) 2022-09-27 03:08:19 +02:00