mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-07 09:29:59 +00:00
fix: revert using useSelfAccount
(hotfix)
This reverts commit 11fc2572d5
.
This commit is contained in:
parent
11fc2572d5
commit
cfbb93045c
3 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ const { account, command, context, ...props } = defineProps<{
|
||||||
command?: boolean
|
command?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const isSelf = useSelfAccount(() => account)
|
const isSelf = $computed(() => currentUser.value?.account.id === account.id)
|
||||||
const enable = $computed(() => !isSelf && currentUser.value)
|
const enable = $computed(() => !isSelf && currentUser.value)
|
||||||
const relationship = $computed(() => props.relationship || useRelationship(account).value)
|
const relationship = $computed(() => props.relationship || useRelationship(account).value)
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ watchEffect(() => {
|
||||||
iconFields.value = icons
|
iconFields.value = icons
|
||||||
})
|
})
|
||||||
|
|
||||||
const isSelf = useSelfAccount(() => account)
|
const isSelf = $computed(() => currentUser.value?.account.id === account.id)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -7,7 +7,7 @@ const { account } = defineProps<{
|
||||||
}>()
|
}>()
|
||||||
let relationship = $(useRelationship(account))
|
let relationship = $(useRelationship(account))
|
||||||
|
|
||||||
const isSelf = $(useSelfAccount(() => account))
|
const isSelf = $computed(() => currentUser.value?.account.id === account.id)
|
||||||
|
|
||||||
const masto = useMasto()
|
const masto = useMasto()
|
||||||
const toggleMute = async () => {
|
const toggleMute = async () => {
|
||||||
|
|
Loading…
Reference in a new issue