From b81ca280e5b531ce93fbfb8ac2705762babb4f57 Mon Sep 17 00:00:00 2001 From: patak Date: Thu, 29 Dec 2022 14:11:05 +0100 Subject: [PATCH] fix: replying to self --- components/status/StatusReplyingTo.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/status/StatusReplyingTo.vue b/components/status/StatusReplyingTo.vue index cee2a4c7..60f50b68 100644 --- a/components/status/StatusReplyingTo.vue +++ b/components/status/StatusReplyingTo.vue @@ -5,7 +5,8 @@ const { status } = defineProps<{ status: Status }>() -const account = useAccountById(status.inReplyToAccountId) +const isSelf = $computed(() => status.inReplyToAccountId === status.account.id) +const account = isSelf ? computed(() => status.account) : useAccountById(status.inReplyToAccountId)