From 8f2ed79a0b25db547020c0e0b664a94d6bee1c8f Mon Sep 17 00:00:00 2001 From: Eugen Date: Sun, 16 Apr 2017 21:02:54 +0200 Subject: [PATCH] Fix bug mentioned in #1565 (#1954) --- lib/tasks/mastodon.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index b4773027401..a1947ea0e90 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -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