]> cat aescling's git repositories - mastodon.git/commit
Fix AccountDeletionWorker crashing and clogging sidekiq queues (#15380)
authorThibG <thib@sitedethib.com>
Sun, 20 Dec 2020 17:25:00 +0000 (18:25 +0100)
committerGitHub <noreply@github.com>
Sun, 20 Dec 2020 17:25:00 +0000 (18:25 +0100)
commit7bf3c6e57b52cd9390f2140a1cc17292c281aacf
treeadde2393c2ba14cc18368670a058802c57b6dc45
parent9734c9b6fe2d2e4a980d8ad94c5de0300b23c809
Fix AccountDeletionWorker crashing and clogging sidekiq queues (#15380)

* Fix account deletion workers being queued multiple times for a single account

* Fix poll votes being unnecessarily instantiated on poll deletion

* Fix favourites being unnecessarily instantiated on status deletion

* Remove inaccurate comments

* Delete polls instead of destroying them

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
app/models/poll.rb
app/models/status.rb
app/services/batched_remove_status_service.rb
app/services/delete_account_service.rb
app/workers/account_deletion_worker.rb