From c200abcc900f529cd51356edbd2e3f1bb11bc22a Mon Sep 17 00:00:00 2001 From: Peter Budai Date: Thu, 19 Jan 2023 16:18:08 +0100 Subject: [PATCH] feat: add 'copy original link to this post' menu item (#1318) --- components/status/StatusActionsMore.vue | 13 +++++++++++++ locales/en-GB.json | 1 + locales/en-US.json | 1 + 3 files changed, 15 insertions(+) diff --git a/components/status/StatusActionsMore.vue b/components/status/StatusActionsMore.vue index e116073c..b1b9d2c0 100644 --- a/components/status/StatusActionsMore.vue +++ b/components/status/StatusActionsMore.vue @@ -42,6 +42,12 @@ const copyLink = async (status: mastodon.v1.Status) => { await clipboard.copy(url) } +const copyOriginalLink = async (status: mastodon.v1.Status) => { + const url = status.url + if (url) + await clipboard.copy(url) +} + const { share, isSupported: isShareSupported } = useShare() const shareLink = async (status: mastodon.v1.Status) => { const url = getPermalinkUrl(status) @@ -169,6 +175,13 @@ const showFavoritedAndBoostedBy = () => { @click="copyLink(status)" /> + +