refactor: extract check self account

This commit is contained in:
三咲智子 Kevin Deng 2023-01-14 03:01:24 +08:00
parent b6c916517c
commit 11fc2572d5
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
3 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ const { account } = defineProps<{
}>()
let relationship = $(useRelationship(account))
const isSelf = $computed(() => currentUser.value?.account.id === account.id)
const isSelf = $(useSelfAccount(() => account))
const masto = useMasto()
const toggleMute = async () => {