mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 00:56:23 +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[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');
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue