Skip to content
Snippets Groups Projects
Commit 8f2ed79a authored by Eugen's avatar Eugen Committed by GitHub
Browse files

Fix bug mentioned in #1565 (#1954)

parent 2b6b8949
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment