fix: hide actions at self profile

This commit is contained in:
三咲智子 2022-11-26 02:24:46 +08:00
parent 9df9c06f64
commit 373697619f
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -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,6 +54,7 @@ const unblock = async () => {
</CommonDropdownItem>
</NuxtLink>
<template v-if="!isSelf">
<CommonDropdownItem icon="i-ri:at-line" @click="mentionUser(account)">
Mention @{{ account.acct }}
</CommonDropdownItem>
@ -73,5 +76,6 @@ const unblock = async () => {
Unblock @{{ account.acct }}
</CommonDropdownItem>
</template>
</template>
</CommonDropdown>
</template>