From ad14d2ebfa79bc6153993f21cc2bc862f1beab90 Mon Sep 17 00:00:00 2001
From: Marie <github@yuugi.dev>
Date: Sun, 9 Mar 2025 20:26:55 +0100
Subject: upd: check for remote url first before providing local url on
 pleaseLoginContext

---
 packages/frontend/src/components/MkNoteDetailed.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/frontend/src/components/MkNoteDetailed.vue')

diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue
index 1daca114c0..1bbd3ba5d0 100644
--- a/packages/frontend/src/components/MkNoteDetailed.vue
+++ b/packages/frontend/src/components/MkNoteDetailed.vue
@@ -371,7 +371,7 @@ let renoting = false;
 
 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}`,
 }));
 
 const keymap = {
-- 
cgit v1.2.3-freya

