chore: cleanup subs
This commit is contained in:
@ -19,7 +19,7 @@ export interface TimelineProps {
|
||||
* A list of notes by pubkeys
|
||||
*/
|
||||
export default function Timeline({ subject, postsOnly = false, method }: TimelineProps) {
|
||||
const { main, related, latest, loadMore, showLatest } = useTimelineFeed(subject, {
|
||||
const { main, related, latest, parent, loadMore, showLatest } = useTimelineFeed(subject, {
|
||||
method
|
||||
});
|
||||
|
||||
@ -42,7 +42,8 @@ export default function Timeline({ subject, postsOnly = false, method }: Timelin
|
||||
}
|
||||
case EventKind.Reaction:
|
||||
case EventKind.Repost: {
|
||||
return <NoteReaction data={e} key={e.id} />
|
||||
let eRef = e.tags.find(a => a[0] === "e")?.at(1);
|
||||
return <NoteReaction data={e} key={e.id} root={parent.notes.find(a => a.id === eRef)}/>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user