From ae1a77d18e31a6c7ca3d6cd6f4214f425a8bf855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Thu, 11 Dec 2025 13:13:50 +0100 Subject: [PATCH] refactor: improve Kind39701 consistency and URL handling - Match title style with article renderer (add text-foreground) - Add https:// prefix when only d tag provided - Maintain consistency across kind renderers --- src/components/nostr/kinds/Kind39701Renderer.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/nostr/kinds/Kind39701Renderer.tsx b/src/components/nostr/kinds/Kind39701Renderer.tsx index ffa4163..8517372 100644 --- a/src/components/nostr/kinds/Kind39701Renderer.tsx +++ b/src/components/nostr/kinds/Kind39701Renderer.tsx @@ -12,13 +12,16 @@ export function Kind39701Renderer({ event }: BaseEventProps) { // URL comes from d tag (identifier) or optional u tag const dTag = event.tags.find((t) => t[0] === "d")?.[1]; const uTag = event.tags.find((t) => t[0] === "u")?.[1]; - const url = uTag || dTag; + // If only d tag provided, assume https:// prefix + const url = uTag || (dTag ? `https://${dTag}` : undefined); return (
{/* Title */} - {title &&

{title}

} + {title && ( +

{title}

+ )} {/* URL with external link icon */} {url && (