diff --git a/components/account/AccountFollowButton.vue b/components/account/AccountFollowButton.vue index 3b4f5239..6a0c7aa8 100644 --- a/components/account/AccountFollowButton.vue +++ b/components/account/AccountFollowButton.vue @@ -7,8 +7,8 @@ const { account, command, ...props } = defineProps<{ command?: boolean }>() -const isSelf = $computed(() => currentUser.value?.account.id === account.id) -const enable = $computed(() => !isSelf && currentUser.value) +const isSelf = $computed(() => checkUser(currentUser.value) && currentUser.value.account.id === account.id) +const enable = $computed(() => !isSelf && !isGuest.value) const relationship = $computed(() => props.relationship || useRelationship(account).value) const masto = useMasto() diff --git a/components/account/AccountHeader.vue b/components/account/AccountHeader.vue index 25ab8922..6ec29559 100644 --- a/components/account/AccountHeader.vue +++ b/components/account/AccountHeader.vue @@ -60,7 +60,7 @@ watchEffect(() => { iconFields.value = icons }) -const isSelf = $computed(() => currentUser.value?.account.id === account.id) +const isSelf = $computed(() => checkUser(currentUser.value) && currentUser.value?.account.id === account.id)