fix: current user avatar on reply widget

zio/stable
patak 2022-11-21 16:12:12 +01:00
parent f0aefae6a4
commit f97920d9d2
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
const { currentUser } = $(useClientState())
const params = useRoute().params const params = useRoute().params
const id = computed(() => params.post as string) const id = computed(() => params.post as string)
@ -14,7 +16,7 @@ const { data: context } = await useAsyncData(`${id}-context`, () => masto.status
</template> </template>
<StatusDetails :status="status" border="t border" pt-4 /> <StatusDetails :status="status" border="t border" pt-4 />
<div border="t border" p6 flex gap-4> <div border="t border" p6 flex gap-4>
<img :src="status?.account.avatar" rounded w-10 h-10 bg-gray:10> <img :src="currentUser?.account?.avatar" rounded w-10 h-10 bg-gray:10>
<PublishWidget <PublishWidget
w-full w-full
:draft-key="`reply-${id}`" :draft-key="`reply-${id}`"