mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 23:22:25 -05:00
move boost checking to prepare function
This commit is contained in:
parent
6fa0033a45
commit
8c09d0f20d
2 changed files with 39 additions and 33 deletions
7
internal/cache/timeline/status.go
vendored
7
internal/cache/timeline/status.go
vendored
|
|
@ -279,12 +279,7 @@ func (t *StatusTimeline) Init(cap int) {
|
|||
Indices: []structr.IndexConfig{
|
||||
{Fields: "AccountID", Multiple: true},
|
||||
{Fields: "BoostOfAccountID", Multiple: true},
|
||||
|
||||
// By setting multiple=false for BoostOfID, this will prevent
|
||||
// timeline entries with matching BoostOfID will not be inserted
|
||||
// after the first, which allows us to prevent repeated boosts
|
||||
// of the same status from showing up within 'cap' entries.
|
||||
{Fields: "BoostOfID", Multiple: false},
|
||||
{Fields: "BoostOfID", Multiple: true},
|
||||
},
|
||||
|
||||
// Timeline item copy function.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue