upd: check for remote url first before providing local url on pleaseLoginContext

This commit is contained in:
Marie 2025-03-09 20:26:55 +01:00
parent a90a8e9e68
commit ad14d2ebfa
No known key found for this signature in database
GPG key ID: 7ADF6C9CD9A28555
6 changed files with 6 additions and 6 deletions

View file

@ -352,7 +352,7 @@ const renoteTooltip = computeRenoteTooltip(renoted);
const pleaseLoginContext = computed<OpenOnRemoteOptions>(() => ({
type: 'lookup',
url: `https://${host}/notes/${appearNote.value.id}`,
url: appearNote.value.url ?? appearNote.value.uri ?? `https://${host}/notes/${appearNote.value.id}`,
}));
/* Overload FunctionLint