kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'max-id-undefined' into 'develop'
Timelines: prevent max_id=undefined in home timeline requests See merge request soapbox-pub/soapbox!2025environments/review-develop-3zknud/deployments/1822
commit
e67589a109
|
@ -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);
|
||||
});
|
||||
}));
|
||||
|
|
Ładowanie…
Reference in New Issue