[Glitch] Fix “Share @{name}'s profile” profile menu item

Port f47fbb8729 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
th-downstream
Claire 2 years ago
parent b2f452000b
commit 0c954ada93

@ -141,6 +141,17 @@ class Header extends ImmutablePureComponent {
}
}
handleShare = () => {
const { account } = this.props;
navigator.share({
text: `${titleFromAccount(account)}\n${account.get('note_plain')}`,
url: account.get('url'),
}).catch((e) => {
if (e.name !== 'AbortError') console.error(e);
});
}
render () {
const { account, hidden, intl, domain } = this.props;
const { signedIn } = this.context.identity;

Loading…
Cancel
Save