From 18c6c3e68a929ac5be663d135dcadc8be5cb7358 Mon Sep 17 00:00:00 2001 From: Gigi Date: Sun, 19 Oct 2025 00:12:49 +0200 Subject: [PATCH] fix(content): show only article-specific highlights in ContentPanel for nostr articles --- src/components/ThreePaneLayout.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ThreePaneLayout.tsx b/src/components/ThreePaneLayout.tsx index 2ebc0025..d535ed18 100644 --- a/src/components/ThreePaneLayout.tsx +++ b/src/components/ThreePaneLayout.tsx @@ -368,7 +368,9 @@ const ThreePaneLayout: React.FC = (props) => { summary={props.readerContent?.summary} published={props.readerContent?.published} selectedUrl={props.selectedUrl} - highlights={props.classifiedHighlights} + highlights={props.selectedUrl && props.selectedUrl.startsWith('nostr:') + ? props.highlights // article-specific highlights only + : props.classifiedHighlights} showHighlights={props.showHighlights} highlightStyle={props.settings.highlightStyle || 'marker'} highlightColor={props.settings.highlightColor || '#ffff00'}