From 373697619fdf59d733770ac23c16a6e72d37da92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Sat, 26 Nov 2022 02:24:46 +0800 Subject: [PATCH] fix: hide actions at self profile --- components/account/AccountMoreButton.vue | 40 +++++++++++++----------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/components/account/AccountMoreButton.vue b/components/account/AccountMoreButton.vue index b2537416..5bda60c4 100644 --- a/components/account/AccountMoreButton.vue +++ b/components/account/AccountMoreButton.vue @@ -6,6 +6,8 @@ const { account } = defineProps<{ }>() let relationship = $(useRelationship(account)) +const isSelf = $computed(() => currentUser.value?.account.id === account.id) + const mute = async () => { // TODO: Add confirmation @@ -52,26 +54,28 @@ const unblock = async () => { - - Mention @{{ account.acct }} - - - Direct message @{{ account.acct }} - +