From cfbb93045c38cf168af81240578018a56123653f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 13 Jan 2023 20:57:47 +0000 Subject: [PATCH] fix: revert using `useSelfAccount` (hotfix) This reverts commit 11fc2572d51f706aa856a2d0353449b70857bd92. --- components/account/AccountFollowButton.vue | 2 +- components/account/AccountHeader.vue | 2 +- components/account/AccountMoreButton.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/account/AccountFollowButton.vue b/components/account/AccountFollowButton.vue index d109fe0f..7b79778e 100644 --- a/components/account/AccountFollowButton.vue +++ b/components/account/AccountFollowButton.vue @@ -8,7 +8,7 @@ const { account, command, context, ...props } = defineProps<{ command?: boolean }>() -const isSelf = useSelfAccount(() => account) +const isSelf = $computed(() => currentUser.value?.account.id === account.id) const enable = $computed(() => !isSelf && currentUser.value) const relationship = $computed(() => props.relationship || useRelationship(account).value) diff --git a/components/account/AccountHeader.vue b/components/account/AccountHeader.vue index c9760eb3..cddc3c3b 100644 --- a/components/account/AccountHeader.vue +++ b/components/account/AccountHeader.vue @@ -75,7 +75,7 @@ watchEffect(() => { iconFields.value = icons }) -const isSelf = useSelfAccount(() => account) +const isSelf = $computed(() => currentUser.value?.account.id === account.id)