From 3156607612cbe1e4fc9429402258f1d443525634 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Thu, 10 Aug 2023 11:20:51 -0500 Subject: [PATCH] fix external link on notes --- src/components/note/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/note/index.tsx b/src/components/note/index.tsx index 6529818a3..f515a0e2d 100644 --- a/src/components/note/index.tsx +++ b/src/components/note/index.tsx @@ -46,7 +46,7 @@ export const Note = React.memo(({ event, variant = "outline" }: NoteProps) => { useRegisterIntersectionEntity(ref, event.id); // find mostr external link - const externalLink = useMemo(() => event.tags.find((t) => t[0] === "mostr"), [event]); + const externalLink = useMemo(() => event.tags.find((t) => t[0] === "mostr" || t[0] === "proxy"), [event])?.[1]; return ( @@ -81,7 +81,7 @@ export const Note = React.memo(({ event, variant = "outline" }: NoteProps) => { as={Link} icon={} aria-label="Open External" - href={externalLink[1]} + href={externalLink} size="sm" variant="link" target="_blank"