Notifications: no need to reverse fetched data

This commit is contained in:
Alex Gleason
2021-07-09 17:56:25 -05:00
parent 94332ea0ef
commit 75d464b4d4

View File

@ -188,7 +188,7 @@ export function expandNotifications({ maxId } = {}, done = noOp) {
api(getState).get('/api/v1/notifications', { params }).then(response => {
const next = getLinks(response).refs.find(link => link.rel === 'next');
const entries = response.data.reverse().reduce((acc, item) => {
const entries = response.data.reduce((acc, item) => {
if (item.account && item.account.id) {
acc.accounts[item.account.id] = item.account;
}