2022-11-23 09:00:52 +09:00
|
|
|
<script setup lang="ts">
|
|
|
|
import type { Status } from 'masto'
|
|
|
|
|
|
|
|
const { status } = defineProps<{
|
|
|
|
status: Status
|
|
|
|
}>()
|
|
|
|
|
2022-11-30 16:08:10 +09:00
|
|
|
const account = useAccountById(status.inReplyToAccountId!)
|
2022-11-23 09:00:52 +09:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-11-24 17:57:24 +09:00
|
|
|
<NuxtLink
|
|
|
|
v-if="status.inReplyToId"
|
2022-11-27 05:41:18 +09:00
|
|
|
flex="~ wrap" items-center text-sm text-secondary
|
2022-12-01 02:15:18 +09:00
|
|
|
:to="getStatusInReplyToRoute(status)"
|
2022-11-24 17:57:24 +09:00
|
|
|
:title="account ? `Replying to ${getDisplayName(account)}` : 'Replying to someone'"
|
|
|
|
>
|
2022-11-27 05:48:06 +09:00
|
|
|
<div i-ri:reply-fill rotate-180 text-secondary-light class="mr-1.5" />
|
2022-11-24 17:57:24 +09:00
|
|
|
<AccountInlineInfo v-if="account" :account="account" :link="false" />
|
|
|
|
<span v-else>Someone</span>
|
|
|
|
</NuxtLink>
|
2022-11-23 09:00:52 +09:00
|
|
|
</template>
|