From 62e0dd858c66ac6d811a1a208648a0c1464258eb Mon Sep 17 00:00:00 2001 From: Oneric Date: Wed, 15 May 2024 18:47:47 +0200 Subject: [PATCH] Fix ordering of favourites timeline The backend returns them order by when the post was favourited; reordering them by post date jumbles everything up each addition and serves no purpose. Fixes: https://akkoma.dev/AkkomaGang/akkoma-fe/issues/391 --- src/modules/statuses.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 1080462c..200718e3 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -314,7 +314,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us }) // Keep the visible statuses sorted - if (timeline && !(timeline === 'bookmarks')) { + if (timeline && !(['bookmarks', 'favorites'].includes(timeline))) { sortTimeline(timelineObject) } }