fix: revert using `useSelfAccount` (hotfix)

This reverts commit 11fc2572d5.
pull/1031/head^2
Daniel Roe 2023-01-13 20:57:47 +00:00
rodzic 11fc2572d5
commit cfbb93045c
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -75,7 +75,7 @@ watchEffect(() => {
iconFields.value = icons
})
const isSelf = useSelfAccount(() => account)
const isSelf = $computed(() => currentUser.value?.account.id === account.id)
</script>
<template>

Wyświetl plik

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