Make handleShare use status.uri instead of status.url

This commit is contained in:
Alex Gleason 2022-04-20 10:54:12 -05:00
parent 445327d139
commit ab5b8f747e
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ class StatusActionBar extends ImmutablePureComponent<IStatusActionBar, IStatusAc
handleShareClick = () => { handleShareClick = () => {
navigator.share({ navigator.share({
text: this.props.status.search_index, text: this.props.status.search_index,
url: this.props.status.url, url: this.props.status.uri,
}).catch((e) => { }).catch((e) => {
if (e.name !== 'AbortError') console.error(e); if (e.name !== 'AbortError') console.error(e);
}); });

View File

@ -285,7 +285,7 @@ class ActionBar extends React.PureComponent<IActionBar, IActionBarState> {
handleShare = () => { handleShare = () => {
navigator.share({ navigator.share({
text: this.props.status.search_index, text: this.props.status.search_index,
url: this.props.status.url, url: this.props.status.uri,
}); });
} }