32 lines
749 B
Vue
32 lines
749 B
Vue
<template>
|
|
<template v-if="post.reblog">
|
|
<div class="action">
|
|
<img :src="require('@/assets/feather/repeat.svg')">
|
|
<span>{{ post.account.display_name || post.account.username }} reposted</span>
|
|
</div>
|
|
<post :post="post.reblog"></post>
|
|
</template>
|
|
<post v-else :post="post"></post>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
/* eslint-disable no-undef */
|
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
import type { Post as PostObject } from "@/api/posts"
|
|
import Post from "@/components/Post.vue"
|
|
|
|
const props = defineProps<{
|
|
post: PostObject,
|
|
}>()
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
@import "../styles/layout";
|
|
@import "../styles/mixins";
|
|
@import "../styles/theme";
|
|
|
|
.action {
|
|
@include post-action;
|
|
}
|
|
</style>
|