elk/pages/@[user]/following.vue
2022-11-23 12:25:48 +08:00

14 lines
433 B
Vue

<script setup lang="ts">
const params = useRoute().params
const user = $computed(() => params.user as string)
const { data: account } = await useAsyncData(`${user}:info`, () => masto.accounts.lookup({ acct: user }))
const paginator = masto.accounts.getFollowingIterable(account.value!.id!, {})
</script>
<template>
<div>
<AccountHeader :account="account" />
</div>
<AccountPaginator :paginator="paginator" />
</template>