diff --git a/components/status/StatusActions.vue b/components/status/StatusActions.vue index a6d7c444..14f4db22 100644 --- a/components/status/StatusActions.vue +++ b/components/status/StatusActions.vue @@ -76,8 +76,10 @@ const toggleTranslation = async () => { isLoading.translation = false } -const copyLink = async (url: string) => { - await clipboard.copy(url) +const copyLink = async (status: Status) => { + const url = getStatusPermalink(status) + if (url) + await clipboard.copy(`${location.origin}${url}`) } const deleteStatus = async () => { // TODO confirm to delete @@ -194,7 +196,7 @@ function editStatus() { text="Copy link to this post" icon="i-ri:link" :command="command" - @click="copyLink(status.url)" + @click="copyLink(status)" /> diff --git a/components/user/UserSignInEntry.vue b/components/user/UserSignInEntry.vue index 96a8dd6a..521cfc8c 100644 --- a/components/user/UserSignInEntry.vue +++ b/components/user/UserSignInEntry.vue @@ -1,8 +1,11 @@