Only show share entry for federated posts

This commit is contained in:
nachtjasmin 2023-11-18 18:32:03 +01:00
parent f825010915
commit 1de4899070
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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']);
@ -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 });
}