From fb4973eb8b7955ad43ae0a2491ac7027d5382f02 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 3cf39812e..859c7aadf 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -119,11 +119,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;