Skip to content

Commit

Permalink
Only show share entry for federated posts
Browse files Browse the repository at this point in the history
  • Loading branch information
nachtjasmin committed Nov 18, 2023
1 parent f825010 commit 1de4899
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class ActionBar extends PureComponent {
const publicStatus = ['public', 'unlisted'].includes(status.get('visibility'));
const pinnableStatus = ['public', 'unlisted', 'private'].includes(status.get('visibility'));
const mutingConversation = status.get('muted');
const federated = !status.get('local_only');
const federated = !status.get('local_only');
const account = status.get('account');
const writtenByMe = status.getIn(['account', 'id']) === me;
const isRemote = status.getIn(['account', 'username']) !== status.getIn(['account', 'acct']);
Expand All @@ -203,7 +203,7 @@ class ActionBar extends PureComponent {

menu.push({ text: intl.formatMessage(messages.copy), action: this.handleCopy });

if (publicStatus && 'share' in navigator) {
if (publicStatus && 'share' in navigator && federated) {
menu.push({ text: intl.formatMessage(messages.share), action: this.handleShare });
}

Expand Down

0 comments on commit 1de4899

Please sign in to comment.