From 967aa653d38626c1a5e217bd44043c3014314bdc Mon Sep 17 00:00:00 2001 From: nachtjasmin Date: Sat, 18 Nov 2023 18:32:03 +0100 Subject: [PATCH] Only show share entry for federated posts --- .../mastodon/features/status/components/action_bar.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/mastodon/features/status/components/action_bar.jsx b/app/javascript/mastodon/features/status/components/action_bar.jsx index a8e9b079e..23dce5bda 100644 --- a/app/javascript/mastodon/features/status/components/action_bar.jsx +++ b/app/javascript/mastodon/features/status/components/action_bar.jsx @@ -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 }); }