diff options
author | ThibG <thib@sitedethib.com> | 2020-02-07 13:21:25 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-02-09 12:29:51 +0100 |
commit | e443874024e908694395aae71a7df4ec557be70f (patch) | |
tree | 51a579c42f7f495e0ab940bb9efc07f31507049a /app/javascript/flavours/glitch/components | |
parent | dae5e446fe7294dba0e14311ef3da4dc8fff6a3a (diff) |
[Glitch] Fix native share button not being displayed for unlisted toots
Port 02236332bab7c5cc4ddf4a3a778fd956f6851322 to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/components')
-rw-r--r-- | app/javascript/flavours/glitch/components/status_action_bar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/status_action_bar.js b/app/javascript/flavours/glitch/components/status_action_bar.js index 60b370622..0a481c816 100644 --- a/app/javascript/flavours/glitch/components/status_action_bar.js +++ b/app/javascript/flavours/glitch/components/status_action_bar.js @@ -265,7 +265,7 @@ class StatusActionBar extends ImmutablePureComponent { replyTitle = intl.formatMessage(messages.replyAll); } - const shareButton = ('share' in navigator) && status.get('visibility') === 'public' && ( + const shareButton = ('share' in navigator) && publicStatus && ( <IconButton className='status__action-bar-button' title={intl.formatMessage(messages.share)} icon='share-alt' onClick={this.handleShareClick} /> ); |