about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-16 21:02:54 +0200
committerGitHub <noreply@github.com>2017-04-16 21:02:54 +0200
commit8f2ed79a0b25db547020c0e0b664a94d6bee1c8f (patch)
tree836bc614c67e6d36b05db7943f3f66d36d2337ea
parent2b6b89491d6b95148a62e2f1947655a667e70080 (diff)
Fix bug mentioned in #1565 (#1954)
-rw-r--r--lib/tasks/mastodon.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake
index b47730274..a1947ea0e 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