Also try URI for remote note links
This commit is contained in:
parent
6e2cda9ee4
commit
a7b2c6dc8b
|
@ -126,11 +126,11 @@ export function getCopyNoteLinkMenu(note: Misskey.entities.Note, text: string):
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getCopyNoteLinkRemoteMenu(note: misskey.entities.Note, text: string): MenuItem {
|
export function getCopyNoteLinkRemoteMenu(note: misskey.entities.Note, text: string): MenuItem {
|
||||||
return note.url ? {
|
return (note.url || note.uri) ? {
|
||||||
icon: 'ti ti-link',
|
icon: 'ti ti-link',
|
||||||
text,
|
text,
|
||||||
action: (): void => {
|
action: (): void => {
|
||||||
copyToClipboard(note.url);
|
copyToClipboard(note.url || note.uri);
|
||||||
os.success();
|
os.success();
|
||||||
},
|
},
|
||||||
} : undefined;
|
} : undefined;
|
||||||
|
|
Loading…
Reference in New Issue