{{ selected.title }}
{{ selected.body }}
diff --git a/frontend/src/views/apps/LocalPagesApp.vue b/frontend/src/views/apps/LocalPagesApp.vue index 095ff83..6ce5132 100644 --- a/frontend/src/views/apps/LocalPagesApp.vue +++ b/frontend/src/views/apps/LocalPagesApp.vue @@ -266,16 +266,15 @@ function openCityMarktListing(): void { }) } -function sharePost(): void { - if (!selected.value) return +function sharePost(post: PagesPost): void { easyShare.open({ appId: 'local-pages', - copyText: `${selected.value.title}\n${selected.value.body}`, - id: selected.value.id, + copyText: `${post.title}\n${post.body}`, + id: post.id, kind: 'post', - link: `skyphone://local-pages/post/${selected.value.id}`, - subtitle: `@${selected.value.author_name}`, - title: selected.value.title, + link: `skyphone://local-pages/post/${post.id}`, + subtitle: `@${post.author_name}`, + title: post.title, }) } @@ -362,6 +361,7 @@ onMounted(async () => {
{{ selected.body }}