From 3dadf3d268b0f9e2f6e6315680585d866ad23a33 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Sat, 24 Oct 2020 21:58:48 -0500 Subject: [PATCH] Updated StatusSharePopover and navigator.canShare() functionality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - StatusSharePopover links and urls - navigator.canShare() functionality in StatusContainer --- .../popover/status_share_popover.js | 25 +++++++++++++------ .../gabsocial/containers/status_container.js | 9 +++---- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/app/javascript/gabsocial/components/popover/status_share_popover.js b/app/javascript/gabsocial/components/popover/status_share_popover.js index 1068858a..74f23f66 100644 --- a/app/javascript/gabsocial/components/popover/status_share_popover.js +++ b/app/javascript/gabsocial/components/popover/status_share_popover.js @@ -41,8 +41,12 @@ class StatusSharePopover extends ImmutablePureComponent { render() { const { intl, status } = this.props - const mailToHref = !status ? undefined : `mailto:?subject=Gab&body=${status.get('url')}` + if (!status) return
+ const encodedStatusUrl = encodeURIComponent(status.get('url')) + const mailToHref = `mailto:?subject=Gab&body=${encodedStatusUrl}` + const content = status.get('contentHtml') + return (