1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-27 22:38:42 +09:00

Fix bug mentioned in #1565 (#1954)

This commit is contained in:
Eugen 2017-04-16 21:02:54 +02:00 committed by GitHub
parent 2b6b89491d
commit 8f2ed79a0b

View File

@ -100,7 +100,7 @@ namespace :mastodon do
# only have a user record and an avatar record, with no files uploaded
User.where('confirmed_at is NULL AND confirmation_sent_at <= ?', 2.days.ago).find_in_batches do |batch|
Account.where(id: batch.map(&:account_id)).delete_all
batch.delete_all
User.where(id: batch.map(&:id)).delete_all
end
end
end