diff --git a/components/status/StatusActions.vue b/components/status/StatusActions.vue index bdfde9ce..1e29d27d 100644 --- a/components/status/StatusActions.vue +++ b/components/status/StatusActions.vue @@ -1,13 +1,28 @@ - + @@ -20,9 +35,13 @@ defineProps<{ {{ status.reblogsCount }} - + - + {{ status.favouritesCount }} diff --git a/pages/@[user]/index.vue b/pages/@[user]/index.vue index 9d7f707c..67a1d4dd 100644 --- a/pages/@[user]/index.vue +++ b/pages/@[user]/index.vue @@ -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!)) +