mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-24 06:24:42 +01:00
Fix empty statuses when (pre)loading homeNew
This commit is contained in:
parent
79d6fd02b8
commit
de409bd668
1 changed files with 11 additions and 1 deletions
|
@ -93,7 +93,17 @@ function Home({ hidden }) {
|
||||||
newStatuses.value.length &&
|
newStatuses.value.length &&
|
||||||
newStatuses.value[0].id !== states.home[0].id
|
newStatuses.value[0].id !== states.home[0].id
|
||||||
) {
|
) {
|
||||||
states.homeNew = newStatuses.value;
|
states.homeNew = newStatuses.value.map((status) => {
|
||||||
|
states.statuses.set(status.id, status);
|
||||||
|
if (status.reblog) {
|
||||||
|
states.statuses.set(status.reblog.id, status.reblog);
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
id: status.id,
|
||||||
|
reblog: status.reblog?.id,
|
||||||
|
reply: !!status.inReplyToAccountId,
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
setUIState('default');
|
setUIState('default');
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Add table
Reference in a new issue