about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authordogelover911 <84288771+dogelover911@users.noreply.github.com>2022-04-11 14:17:03 -0500
committerGitHub <noreply@github.com>2022-04-11 21:17:03 +0200
commit4c9949560dacac8053cc44a5364534c215ac3a93 (patch)
treec1cedce068d630f455447546946f64497037b447 /app/lib
parentdc503472477000597f2ff1b6a5c37e8ac4dd2d8c (diff)
FeedManager: skip account when target_account's last status is too old (#18009)
Co-authored-by: dogelover911 <dogelover911@localhost>
Diffstat (limited to 'app/lib')
-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 085f1b274..34bb63b8d 100644
--- a/app/lib/feed_manager.rb
+++ b/app/lib/feed_manager.rb
@@ -243,7 +243,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