From c9544e0fd24982ac4eddff91970a345c9b4dab2d Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 14 Oct 2025 11:40:30 +0200 Subject: [PATCH] feat: open highlight in native app when clicking timestamp - Click timestamp to open highlight event in user's native Nostr app - Reuses existing native link logic (nostr:nevent) - Simple and DRY implementation --- src/components/HighlightItem.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/HighlightItem.tsx b/src/components/HighlightItem.tsx index 3c7d2887..194a5aa0 100644 --- a/src/components/HighlightItem.tsx +++ b/src/components/HighlightItem.tsx @@ -320,7 +320,10 @@ export const HighlightItem: React.FC = ({ e.stopPropagation()} + onClick={(e) => { + e.stopPropagation() + window.location.href = highlightLinks.native + }} > {formatDateCompact(highlight.created_at)}