2022-11-18 18:37:22 +09:00
|
|
|
<script setup lang="ts">
|
2023-01-08 15:21:09 +09:00
|
|
|
import type { mastodon } from 'masto'
|
2022-11-18 18:37:22 +09:00
|
|
|
|
2022-12-07 08:51:29 +09:00
|
|
|
const { conversation } = defineProps<{
|
2023-01-08 15:21:09 +09:00
|
|
|
conversation: mastodon.v1.Conversation
|
2022-11-18 18:37:22 +09:00
|
|
|
}>()
|
2022-12-07 08:51:29 +09:00
|
|
|
|
2024-02-22 00:20:08 +09:00
|
|
|
const withAccounts = computed(() =>
|
2022-12-07 08:51:29 +09:00
|
|
|
conversation.accounts.filter(account => account.id !== conversation.lastStatus?.account.id),
|
|
|
|
)
|
2022-11-18 18:37:22 +09:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-12-07 22:31:29 +09:00
|
|
|
<article v-if="conversation.lastStatus" flex flex-col gap-2>
|
2022-12-13 23:56:00 +09:00
|
|
|
<StatusCard v-if="conversation.lastStatus" :status="conversation.lastStatus" :actions="false">
|
|
|
|
<template #meta>
|
|
|
|
<div flex gap-2 text-sm text-secondary font-bold>
|
2023-01-01 23:29:11 +09:00
|
|
|
<p me-1>
|
2022-12-13 23:56:00 +09:00
|
|
|
{{ $t('conversation.with') }}
|
|
|
|
</p>
|
|
|
|
<AccountAvatar v-for="account in withAccounts" :key="account.id" h-5 w-5 :account="account" />
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</StatusCard>
|
2022-11-28 08:29:21 +09:00
|
|
|
</article>
|
2022-11-18 18:37:22 +09:00
|
|
|
</template>
|