diff options
author | 2022-12-09 11:46:52 +0100 | |
---|---|---|
committer | 2022-12-09 11:46:52 +0100 | |
commit | 199672e58631813d89e935928dd79c475104f400 (patch) | |
tree | 010e4eff87bfc56d8d3d059c4de6f8991cf8be50 | |
parent | [feature] Allow users to create + delete bookbarks, and view bookmarked statu... (diff) | |
download | gotosocial-199672e58631813d89e935928dd79c475104f400.tar.xz |
[bugfix] fix unordered favorites (#1236)
-rw-r--r-- | internal/db/bundb/timeline.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/timeline.go b/internal/db/bundb/timeline.go index a6e3554f8..b52b68459 100644 --- a/internal/db/bundb/timeline.go +++ b/internal/db/bundb/timeline.go @@ -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)) |