|
|
|
@ -138,7 +138,7 @@ const normalizeAccountTimeline = (state, accountId, statuses, replace, next) =>
|
|
|
|
|
return state.updateIn(['accounts_timelines', accountId], Immutable.Map(), map => map
|
|
|
|
|
.set('isLoading', false)
|
|
|
|
|
.set('loaded', true)
|
|
|
|
|
.set('next', next)
|
|
|
|
|
.update('next', null, v => replace ? next : v)
|
|
|
|
|
.update('items', Immutable.List(), list => (replace ? ids : ids.concat(list))));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -152,7 +152,7 @@ const normalizeAccountMediaTimeline = (state, accountId, statuses, replace, next
|
|
|
|
|
|
|
|
|
|
return state.updateIn(['accounts_media_timelines', accountId], Immutable.Map(), map => map
|
|
|
|
|
.set('isLoading', false)
|
|
|
|
|
.set('next', next)
|
|
|
|
|
.update('next', null, v => replace ? next : v)
|
|
|
|
|
.update('items', Immutable.List(), list => (replace ? ids : ids.concat(list))));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|