From 700db8f62c120c71f4bfa0e1ad4f93e7d49e00fe Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Tue, 17 Oct 2023 22:02:41 +0300 Subject: [PATCH] "share note" url --- packages/app/src/Element/Event/NoteContextMenu.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/Element/Event/NoteContextMenu.tsx b/packages/app/src/Element/Event/NoteContextMenu.tsx index b35cfb444..8865a2c35 100644 --- a/packages/app/src/Element/Event/NoteContextMenu.tsx +++ b/packages/app/src/Element/Event/NoteContextMenu.tsx @@ -45,8 +45,8 @@ export function NoteContextMenu({ ev, ...props }: NosteContextMenuProps) { } async function share() { - const link = NostrLink.fromEvent(ev).encode(); - const url = `${window.location.protocol}//${window.location.host}/e/${link}`; + const link = NostrLink.fromEvent(ev, CONFIG.eventLinkPrefix).encode(); + const url = `${window.location.protocol}//${window.location.host}/${link}`; if ("share" in window.navigator) { await window.navigator.share({ title: "Snort",