summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-10-21 15:14:56 +0100
committerdakkar <dakkar@thenautilus.net>2024-10-21 15:14:56 +0100
commitd7a3ec9c5e1085769c34fce89dc5941fb0aadf79 (patch)
tree1d76a96a9e0108e2b4460184c2a25905877a9b17
parentmerge: chore: fix type errors in useNoteCapture (!701) (diff)
downloadsharkey-d7a3ec9c5e1085769c34fce89dc5941fb0aadf79.tar.gz
sharkey-d7a3ec9c5e1085769c34fce89dc5941fb0aadf79.tar.bz2
sharkey-d7a3ec9c5e1085769c34fce89dc5941fb0aadf79.zip
re-add "copy link (origin)" that was dropped accidentally
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
-rw-r--r--packages/frontend/src/scripts/get-note-menu.ts3
1 files changed, 3 insertions, 0 deletions
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,