Skip to content
Snippets Groups Projects
Unverified Commit fe421257 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix “Share @{name}'s profile” profile menu item (#21490)

parent 098ced74
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment