elk/pages/[[server]]/@[account]/index/following.vue
webfansplz 1d50616949
fix: rework tip for unavailable following/followers (#1110)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2023-01-14 11:39:49 +01:00

25 lines
729 B
Vue

<script setup lang="ts">
const { t } = useI18n()
const params = useRoute().params
const handle = $(computedEager(() => params.account as string))
definePageMeta({ name: 'account-following' })
const account = await fetchAccountByHandle(handle)
const paginator = account ? useMasto().v1.accounts.listFollowing(account.id, {}) : null
const isSelf = useSelfAccount(account)
if (account) {
useHeadFixed({
title: () => `${t('account.following')} | ${getDisplayName(account)} (@${account.acct})`,
})
}
</script>
<template>
<template v-if="paginator">
<AccountPaginator :paginator="paginator" :relationship-context="isSelf ? 'following' : undefined" context="following" :account="account" />
</template>
</template>