From d7a3ec9c5e1085769c34fce89dc5941fb0aadf79 Mon Sep 17 00:00:00 2001 From: dakkar Date: Mon, 21 Oct 2024 15:14:56 +0100 Subject: [PATCH] re-add "copy link (origin)" that was dropped accidentally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit there are 2 nearly identical blocks of code that generate the menu for logged-in users and for not-logged-in… I had missed the logged-in one --- packages/frontend/src/scripts/get-note-menu.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index b3d952f600..4f3fb65665 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -346,6 +346,9 @@ export function getNoteMenu(props: { }, getCopyNoteLinkMenu(appearNote, i18n.ts.copyLink)); if (appearNote.url || appearNote.uri) { + menuItems.push( + getCopyNoteOriginLinkMenu(appearNote, 'Copy link (Origin)') + ); menuItems.push({ icon: 'ti ti-external-link', text: i18n.ts.showOnRemote,