From 404ffba1e7a43ae27fcd82783a1591cd47b5d943 Mon Sep 17 00:00:00 2001 From: Peter Budai Date: Thu, 19 Jan 2023 15:58:25 +0100 Subject: [PATCH] feat: Adding 'Copy original link to this post' menu item Fixes #1064 --- 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 e116073c25..b1b9d2c0cb 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)" /> + +