diff --git a/components/status/StatusActionsMore.vue b/components/status/StatusActionsMore.vue
index 8f66141d..bb3cf503 100644
--- a/components/status/StatusActionsMore.vue
+++ b/components/status/StatusActionsMore.vue
@@ -38,11 +38,27 @@ const toggleTranslation = async () => {
}
const masto = useMasto()
-const copyLink = async (status: Status) => {
+
+const getPermalinkUrl = (status: Status) => {
const url = getStatusPermalinkRoute(status)
if (url)
- await clipboard.copy(`${location.origin}/${url}`)
+ return `${location.origin}/${url}`
+ return null
}
+
+const copyLink = async (status: Status) => {
+ const url = getPermalinkUrl(status)
+ if (url)
+ await clipboard.copy(url)
+}
+
+const { share, isSupported: isShareSupported } = useShare()
+const shareLink = async (status: Status) => {
+ const url = getPermalinkUrl(status)
+ if (url)
+ await share({ url })
+}
+
const deleteStatus = async () => {
// TODO confirm to delete
if (process.dev) {
@@ -153,6 +169,14 @@ async function editStatus() {
@click="copyLink(status)"
/>
+
+