diff --git a/locales/en-US.json b/locales/en-US.json index c1a8c4bf..80946705 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -1,6 +1,7 @@ { "account": { "avatar_description": "{0}'s avatar", + "blocked_by": "You're blocked by this user.", "blocked_domains": "Blocked domains", "blocked_users": "Blocked users", "favourites": "Favourites", diff --git a/locales/zh-CN.json b/locales/zh-CN.json index cca82a39..d6d163fa 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -1,6 +1,7 @@ { "account": { "avatar_description": "{0}的头像", + "blocked_by": "您已被此用户拉黑", "blocked_domains": "已拉黑的域名", "blocked_users": "已拉黑的用户", "favourites": "喜欢的帖文", diff --git a/pages/@[account]/index.vue b/pages/@[account]/index.vue index 4f06d903..42a80bc6 100644 --- a/pages/@[account]/index.vue +++ b/pages/@[account]/index.vue @@ -5,6 +5,7 @@ const accountName = $(computedEager(() => toShortHandle(params.account as string const { t } = useI18n() const { data: account, refresh } = $(await useAsyncData(() => fetchAccountByHandle(accountName).catch(() => null))) +const relationship = $computed(() => account ? useRelationship(account).value : undefined) if (account) { useHeadFixed({ @@ -27,7 +28,16 @@ onReactivated(() => { - + + + + {{ $t('account.profile_unavailable') }} + + + {{ $t('account.blocked_by') }} + + + diff --git a/pages/@[account]/index/index.vue b/pages/@[account]/index/index.vue index 75a99640..b09a6b58 100644 --- a/pages/@[account]/index/index.vue +++ b/pages/@[account]/index/index.vue @@ -43,10 +43,6 @@ const paginator = $computed(() => tabs.find(t => t.name === tab)!.paginator) - -