Also try URI for remote note links

This commit is contained in:
Natty 2023-10-11 21:05:48 +00:00
parent 0648b9ff9f
commit fb4973eb8b
1 changed files with 2 additions and 2 deletions

View File

@ -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;