diff --git a/internal/cache/timeline/status.go b/internal/cache/timeline/status.go index b1334e2e1..9f0af9cdc 100644 --- a/internal/cache/timeline/status.go +++ b/internal/cache/timeline/status.go @@ -291,8 +291,9 @@ func (t *StatusTimeline) preload( if id := value.BoostOfID; id != "" { // Check if seen recently. - last := recentBoosts[id] - value.repeatBoost = (last < 40) + last, ok := recentBoosts[id] + repeat := ok && (idx-last) < 40 + value.repeatBoost = repeat // Update last-seen idx. recentBoosts[id] = idx