frontend/pages/[username]/[uuid].vue
2024-04-25 19:54:02 -10:00

23 lines
568 B
Vue

<template>
<ClientOnly>
<div v-if="note" class="max-w-2xl mx-auto md:py-20 md:px-10">
<SocialElementsNotesNote :note="note" />
</div>
</ClientOnly>
</template>
<script setup lang="ts">
import { useRoute } from "vue-router";
const route = useRoute();
const client = await useMegalodon();
const uuid = route.params.uuid as string;
const note = await useNote(client, uuid);
useServerSeoMeta({
title: note?.account.display_name,
description: note?.content,
ogImage: note?.media_attachments[0]?.preview_url,
});
</script>