feat: user timeline
This commit is contained in:
parent
6ea4879190
commit
f3dd3fe8a5
2 changed files with 27 additions and 5 deletions
|
@ -4,12 +4,15 @@ const props = defineProps<{
|
|||
}>()
|
||||
|
||||
const params = useRoute().params
|
||||
const user = $computed(() => params.user as string)
|
||||
const masto = await useMasto()
|
||||
const { data: account } = await useAsyncData('account', () => masto.accounts.lookup({ acct: params.user as string }))
|
||||
const { data: account } = await useAsyncData(`${user}:info`, () => masto.accounts.lookup({ acct: user }))
|
||||
const { data: status } = await useAsyncData(`${user}:status`, () => masto.accounts.fetchStatuses(account.value!.id!))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<AccountHeader :account="account" />
|
||||
</div>
|
||||
<TimelineList :timelines="status?.value" />
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue