2024-04-15 03:16:57 +02:00
|
|
|
<template>
|
2024-04-22 09:38:51 +02:00
|
|
|
<ClientOnly>
|
2024-04-28 09:46:05 +02:00
|
|
|
<SocialElementsNotesNote v-if="note" :note="note" />
|
2024-04-22 09:38:51 +02:00
|
|
|
</ClientOnly>
|
2024-04-15 03:16:57 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2024-04-28 09:46:05 +02:00
|
|
|
definePageMeta({
|
|
|
|
|
layout: "app",
|
|
|
|
|
})
|
2024-04-15 03:16:57 +02:00
|
|
|
|
|
|
|
|
const route = useRoute();
|
2024-04-27 03:28:12 +02:00
|
|
|
const client = 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-27 03:28:12 +02:00
|
|
|
const note = useNote(client, uuid);
|
2024-04-26 07:54:02 +02:00
|
|
|
|
|
|
|
|
useServerSeoMeta({
|
2024-04-27 03:28:12 +02:00
|
|
|
title: note.value?.account.display_name,
|
|
|
|
|
description: note.value?.content,
|
|
|
|
|
ogImage: note.value?.media_attachments[0]?.preview_url,
|
2024-04-26 07:54:02 +02:00
|
|
|
});
|
2024-04-22 09:38:51 +02:00
|
|
|
</script>
|