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
This commit is contained in:
Oneric 2024-05-15 18:47:47 +02:00
parent ed0b403c33
commit 62e0dd858c
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}