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 () => {
CityMarkt +
@@ -415,7 +415,7 @@ onMounted(async () => {
{{ selected.author_name.charAt(0).toUpperCase() }}
@{{ selected.author_name }}{{ relativeDate(selected.created_at) }}
{{ label('categories', selected.category) }}

{{ selected.title }}

{{ selected.body }}

{{ phone.t('Apps.localPages.location') }}{{ selected.district ? phone.t(`Apps.citymarkt.districts.${selected.district}`) : phone.t('Apps.localPages.allLosSantos') }}
-
+