From 09997c2f90769d56e8378384b1017a9ba1a33212 Mon Sep 17 00:00:00 2001 From: webfansplz <308241863@qq.com> Date: Thu, 19 Jan 2023 18:26:40 +0800 Subject: [PATCH] chore: preview header only when it's already set (#1311) Co-authored-by: Daniel Roe --- components/account/AccountHeader.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/account/AccountHeader.vue b/components/account/AccountHeader.vue index cc69486e..e2779d21 100644 --- a/components/account/AccountHeader.vue +++ b/components/account/AccountHeader.vue @@ -20,6 +20,7 @@ const relationship = $(useRelationship(account)) const namedFields = ref([]) const iconFields = ref([]) +const hasHeader = $computed(() => !account.header.endsWith('/original/missing.png')) function getFieldIconTitle(fieldName: string) { return fieldName === 'Joined' ? t('account.joined') : fieldName @@ -85,9 +86,9 @@ const isNotifiedOnPost = $computed(() => !!relationship?.notifying)