feat: add support for displaying kind 7 and kind 17 reaction events

Reactions now render with a large emoji (matching emoji-only note sizing)
and a "reacted to" preview pill linking to the target event, following
the same pattern as comment parent previews.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
codytseng 2026-04-04 14:56:04 +08:00
parent 5596e5eb7b
commit 234010c385
26 changed files with 209 additions and 29 deletions

View file

@ -16,6 +16,7 @@ import LongFormArticlePreview from './LongFormArticlePreview'
import NormalContentPreview from './NormalContentPreview'
import PictureNotePreview from './PictureNotePreview'
import PollPreview from './PollPreview'
import ReactionPreview from './ReactionPreview'
import VideoNotePreview from './VideoNotePreview'
export default function ContentPreview({
@ -110,6 +111,10 @@ export default function ContentPreview({
return <FollowPackPreview event={event} className={className} />
}
if (event.kind === kinds.Reaction || event.kind === ExtendedKind.EXTERNAL_CONTENT_REACTION) {
return <ReactionPreview event={event} className={className} />
}
return (
<div className={className}>
[