From 112502155efd9fbf20ce06675544c462862fce18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Mon, 3 Jul 2023 15:58:48 +0800 Subject: [PATCH] feat: add account share --- components/account/AccountMoreButton.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/account/AccountMoreButton.vue b/components/account/AccountMoreButton.vue index 8ed10195..866c02a1 100644 --- a/components/account/AccountMoreButton.vue +++ b/components/account/AccountMoreButton.vue @@ -18,6 +18,11 @@ const isSelf = $(useSelfAccount(() => account)) const { t } = useI18n() const { client } = $(useMasto()) const useStarFavoriteIcon = usePreferences('useStarFavoriteIcon') +const { share, isSupported: isShareSupported } = useShare() + +function shareAccount() { + share({ url: location.href }) +} async function toggleReblogs() { if (!relationship!.showingReblogs && await openConfirmDialog({ @@ -61,6 +66,13 @@ async function removeUserNote() { :command="command" /> +