fix: pass source event to RichText in highlight feed preview

The source event preview in HighlightRenderer was only passing the
content string to RichText, which meant custom emoji tags from the
source event weren't processed. Now passes the source event with
the preview content to enable proper emoji and tag-based rendering.
This commit is contained in:
Claude
2026-01-24 09:11:12 +00:00
parent e008d76021
commit 52e8c44e22

View File

@@ -100,7 +100,7 @@ export function Kind9802Renderer({ event }: BaseEventProps) {
onClick={handleOpenEvent}
>
<RichText
content={sourcePreview}
event={{ ...sourceEvent, content: sourcePreview }}
options={{ showMedia: false, showEventEmbeds: false }}
/>
</div>