mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Small clean up
This commit is contained in:
parent
b62c31306e
commit
7bb72ff198
1 changed files with 4 additions and 2 deletions
|
@ -78,12 +78,14 @@ function normalizeStatus(state, status) {
|
|||
};
|
||||
|
||||
function normalizeTimeline(state, timeline, statuses) {
|
||||
let ids = Immutable.List([]);
|
||||
|
||||
statuses.forEach((status, i) => {
|
||||
state = normalizeStatus(state, status);
|
||||
state = state.setIn([timeline, i], status.get('id'));
|
||||
ids = ids.set(i, status.get('id'));
|
||||
});
|
||||
|
||||
return state;
|
||||
return state.set(timeline, ids);
|
||||
};
|
||||
|
||||
function appendNormalizedTimeline(state, timeline, statuses) {
|
||||
|
|
Loading…
Reference in a new issue