2024-04-15 03:16:57 +02:00
|
|
|
<template>
|
2024-04-22 09:38:51 +02:00
|
|
|
<ClientOnly>
|
|
|
|
|
<div v-if="note" class="max-w-2xl mx-auto md:py-20 md:px-10">
|
|
|
|
|
<SocialElementsNotesNote :note="note" />
|
2024-04-15 03:16:57 +02:00
|
|
|
</div>
|
2024-04-22 09:38:51 +02:00
|
|
|
</ClientOnly>
|
2024-04-15 03:16:57 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { useRoute } from "vue-router";
|
|
|
|
|
|
|
|
|
|
const route = useRoute();
|
2024-04-22 09:38:51 +02:00
|
|
|
const client = await useMegalodon();
|
2024-04-25 08:56:01 +02:00
|
|
|
const uuid = route.params.uuid as string;
|
2024-04-15 03:16:57 +02:00
|
|
|
|
2024-04-22 09:38:51 +02:00
|
|
|
const note = await useNote(client, uuid);
|
2024-04-26 07:54:02 +02:00
|
|
|
|
|
|
|
|
useServerSeoMeta({
|
|
|
|
|
title: note?.account.display_name,
|
|
|
|
|
description: note?.content,
|
|
|
|
|
ogImage: note?.media_attachments[0]?.preview_url,
|
|
|
|
|
});
|
2024-04-22 09:38:51 +02:00
|
|
|
</script>
|