mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 16:12:25 -05:00
fix repeatBoost logic that doesn't account for already-hidden repeatBoosts
This commit is contained in:
parent
c8de7f2760
commit
4a4364ff42
1 changed files with 6 additions and 0 deletions
6
internal/cache/timeline/status.go
vendored
6
internal/cache/timeline/status.go
vendored
|
|
@ -552,6 +552,12 @@ func (t *StatusTimeline) InsertOne(status *gtsmodel.Status, prepared *apimodel.S
|
|||
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
|
||||
// within last $repeatBoostDepth, we indicate it as a repeated boost.
|
||||
if value.ID == status.BoostOfID || value.BoostOfID == status.BoostOfID {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue