about summary refs log tree commit diff
path: root/app/lib/feed_manager.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-04-14 14:21:14 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-04-14 14:21:14 +0200
commite06b0234dfedae02c5fa1725575a97c04beb9a7f (patch)
tree1d67b1f2ce69a5ef841242dc1aba1b69698f7ae3 /app/lib/feed_manager.rb
parentd353bb5ee395bbf65da608b2c5427e655786fb97 (diff)
parent9b7387d9174b16a29ec72752c97bfa5849ce60be (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/lib/feed_manager.rb')
-rw-r--r--app/lib/feed_manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb
index 02ecb403d..b35ae4f22 100644
--- a/app/lib/feed_manager.rb
+++ b/app/lib/feed_manager.rb
@@ -268,7 +268,7 @@ class FeedManager
     account.following.includes(:account_stat).find_each do |target_account|
       if redis.zcard(timeline_key) >= limit
         oldest_home_score = redis.zrange(timeline_key, 0, 0, with_scores: true).first.last.to_i
-        last_status_score = Mastodon::Snowflake.id_at(account.last_status_at)
+        last_status_score = Mastodon::Snowflake.id_at(target_account.last_status_at)
 
         # If the feed is full and this account has not posted more recently
         # than the last item on the feed, then we can skip the whole account