Merge pull request #20 from emmawinston/remove-local-only-share-button

Remove share intent button for local-only posts - closes #12
This commit is contained in:
Darius Kazemi
2019-09-23 20:42:01 -07:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@ -245,7 +245,7 @@ class StatusActionBar extends ImmutablePureComponent {
replyTitle = intl.formatMessage(messages.replyAll);
}
const shareButton = ('share' in navigator) && status.get('visibility') === 'public' && (
const shareButton = ('share' in navigator) && status.get('visibility') === 'public' && federated && (
<IconButton className='status__action-bar-button' title={intl.formatMessage(messages.share)} icon='share-alt' onClick={this.handleShareClick} />
);