File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ const { status } = defineProps<{
5
5
status: Status
6
6
}>()
7
7
8
- const account = useAccountById (status .inReplyToAccountId )
8
+ const isSelf = $computed (() => status .inReplyToAccountId === status .account .id )
9
+ const account = isSelf ? computed (() => status .account ) : useAccountById (status .inReplyToAccountId )
9
10
</script >
10
11
11
12
<template >
@@ -17,7 +18,7 @@ const account = useAccountById(status.inReplyToAccountId)
17
18
:title =" account ? `Replying to ${getDisplayName(account)}` : 'Replying to someone'"
18
19
>
19
20
<div i-ri:reply-fill class =" scale-x-[-1]" text-secondary-light />
20
- <template v-if =" account ?. id !== status . account . id " >
21
+ <template v-if =" ! isSelf " >
21
22
<AccountInlineInfo v-if =" account" :account =" account" :link =" false" />
22
23
<span v-else ws-nowrap >{{ $t('status.someone') }}</span >
23
24
</template >
You can’t perform that action at this time.
0 commit comments