Merge branch 'max-id-undefined' into 'develop'
Timelines: prevent max_id=undefined in home timeline requests See merge request soapbox-pub/soapbox!2025
This commit is contained in:
commit
e67589a109
1 changed files with 3 additions and 1 deletions
|
@ -360,7 +360,9 @@ export default function timelines(state: State = initialState, action: AnyAction
|
|||
oldIdsArray = oldIdsArray.slice(1);
|
||||
}
|
||||
const positionInTimeline = sample([5, 6, 7, 8, 9]) as number;
|
||||
oldIdsArray.splice(positionInTimeline, 0, `末suggestions-${oldIds.last()}`);
|
||||
if (oldIds.last()) {
|
||||
oldIdsArray.splice(positionInTimeline, 0, `末suggestions-${oldIds.last()}`);
|
||||
}
|
||||
return ImmutableOrderedSet(oldIdsArray);
|
||||
});
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue