fix repeatBoost logic that doesn't account for already-hidden repeatBoosts

This commit is contained in:
kim 2025-04-17 16:02:38 +01:00
commit 4a4364ff42

View file

@ -552,6 +552,12 @@ func (t *StatusTimeline) InsertOne(status *gtsmodel.Status, prepared *apimodel.S
break break
} }
// We don't care about values that have
// already been hidden as repeat boosts.
if value.repeatBoost {
continue
}
// If inserted status has already been boosted, or original was posted // If inserted status has already been boosted, or original was posted
// within last $repeatBoostDepth, we indicate it as a repeated boost. // within last $repeatBoostDepth, we indicate it as a repeated boost.
if value.ID == status.BoostOfID || value.BoostOfID == status.BoostOfID { if value.ID == status.BoostOfID || value.BoostOfID == status.BoostOfID {