diff --git a/composables/paginator.ts b/composables/paginator.ts index 295c51ac..0fadcc1a 100644 --- a/composables/paginator.ts +++ b/composables/paginator.ts @@ -62,6 +62,11 @@ export function usePaginator( removeCachedStatus(id) const data = items.value as mastodon.v1.Status[] + + const prevItemsIndex = prevItems.value.findIndex((i: any) => i.id === id) + if (prevItemsIndex >= 0) + prevItems.value.splice(prevItemsIndex, 1) + const index = data.findIndex(s => s.id === id) if (index >= 0) data.splice(index, 1) diff --git a/pages/[[server]]/@[account]/index/index.vue b/pages/[[server]]/@[account]/index/index.vue index 4db4c751..afa9c3a2 100644 --- a/pages/[[server]]/@[account]/index/index.vue +++ b/pages/[[server]]/@[account]/index/index.vue @@ -21,11 +21,12 @@ if (account) { title: () => `${t('account.posts')} | ${getDisplayName(account)} (@${account.acct})`, }) } +const stream = useStreaming(client => client.user.subscribe())