forked from mirrors/gotosocial
[bugfix] fix unordered favorites (#1236)
This commit is contained in:
parent
477ae50933
commit
199672e586
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ func (t *timelineDB) GetFavedTimeline(ctx context.Context, accountID string, max
|
|||
|
||||
// Sort by favourite ID rather than status ID
|
||||
slices.SortFunc(faves, func(a, b *gtsmodel.StatusFave) bool {
|
||||
return a.ID < b.ID
|
||||
return b.CreatedAt.Before(a.CreatedAt)
|
||||
})
|
||||
|
||||
statuses := make([]*gtsmodel.Status, 0, len(faves))
|
||||
|
|
Loading…
Reference in a new issue