From a7b2c6dc8bd88656b99f74c4915d546e788b4781 Mon Sep 17 00:00:00 2001 From: Natty Date: Wed, 11 Oct 2023 21:05:48 +0000 Subject: [PATCH] Also try URI for remote note links --- packages/frontend/src/scripts/get-note-menu.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index f8d6162a8..ed3e4c147 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -126,11 +126,11 @@ export function getCopyNoteLinkMenu(note: Misskey.entities.Note, text: string): } export function getCopyNoteLinkRemoteMenu(note: misskey.entities.Note, text: string): MenuItem { - return note.url ? { + return (note.url || note.uri) ? { icon: 'ti ti-link', text, action: (): void => { - copyToClipboard(note.url); + copyToClipboard(note.url || note.uri); os.success(); }, } : undefined;