about summary refs log tree commit diff
path: root/lib/tasks/mastodon.rake
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-06-08 00:33:09 -0500
committerGitHub <noreply@github.com>2018-06-08 00:33:09 -0500
commita9515f3186b49df63436b98d382ee6a6b755387d (patch)
treed771e65a58d3c69ba1c08c3fc145f24b5b806274 /lib/tasks/mastodon.rake
parentf8d50a40701f344ea7c2a0e5475bbcbc727ef930 (diff)
parent8142bd2553e7819722fdfc401e06cb10eeddd230 (diff)
Merge pull request #535 from glitch-soc/merge-upstream
Merge upstream
Diffstat (limited to 'lib/tasks/mastodon.rake')
-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 8ff29ea9e..de8c0bb86 100644
--- a/lib/tasks/mastodon.rake
+++ b/lib/tasks/mastodon.rake
@@ -561,7 +561,7 @@ namespace :mastodon do
 
     desc 'Generates home timelines for users who logged in in the past two weeks'
     task build: :environment do
-      User.active.select(:account_id).find_in_batches do |users|
+      User.active.select(:id, :account_id).find_in_batches do |users|
         RegenerationWorker.push_bulk(users.map(&:account_id))
       end
     end