From 40bc9cd03b2de5081a76635f5756809e7d2777e0 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 29 Nov 2022 11:18:11 +0000 Subject: [PATCH] fix: copy original link (#224) --- components/status/StatusActions.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/status/StatusActions.vue b/components/status/StatusActions.vue index cddbd561..a6d7c444 100644 --- a/components/status/StatusActions.vue +++ b/components/status/StatusActions.vue @@ -76,8 +76,8 @@ const toggleTranslation = async () => { isLoading.translation = false } -const copyLink = async () => { - await clipboard.copy(`${location.origin}${getStatusPath(status)}`) +const copyLink = async (url: string) => { + await clipboard.copy(url) } const deleteStatus = async () => { // TODO confirm to delete @@ -194,7 +194,7 @@ function editStatus() { text="Copy link to this post" icon="i-ri:link" :command="command" - @click="copyLink" + @click="copyLink(status.url)" />