From f7952496e0595ad0f8969488c5d96910202fb9a4 Mon Sep 17 00:00:00 2001 From: Jeremy Kescher Date: Tue, 5 Nov 2024 22:25:28 +0100 Subject: [PATCH] feat(preview): Only show no-CW link context menu option for link preview on local posts --- app/javascript/flavours/glitch/components/status_action_bar.jsx | 2 +- .../flavours/glitch/features/status/components/action_bar.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/components/status_action_bar.jsx b/app/javascript/flavours/glitch/components/status_action_bar.jsx index f8e701c4b7..773209bfb1 100644 --- a/app/javascript/flavours/glitch/components/status_action_bar.jsx +++ b/app/javascript/flavours/glitch/components/status_action_bar.jsx @@ -243,7 +243,7 @@ class StatusActionBar extends ImmutablePureComponent { menu.push({ text: intl.formatMessage(messages.copy), action: this.handleCopy }); - if (publicStatus) { + if (publicStatus && !isRemote) { menu.push({ text: intl.formatMessage(messages.copyUnrestricted), action: this.handleCopyUnrestricted }); } diff --git a/app/javascript/flavours/glitch/features/status/components/action_bar.jsx b/app/javascript/flavours/glitch/features/status/components/action_bar.jsx index a027d11e05..9da63e4250 100644 --- a/app/javascript/flavours/glitch/features/status/components/action_bar.jsx +++ b/app/javascript/flavours/glitch/features/status/components/action_bar.jsx @@ -181,7 +181,7 @@ class ActionBar extends PureComponent { menu.push({ text: intl.formatMessage(messages.copy), action: this.handleCopy }); - if (publicStatus) { + if (publicStatus && !isRemote) { menu.push({ text: intl.formatMessage(messages.copyUnrestricted), action: this.handleCopyUnrestricted }); }