show reply count in feed

This commit is contained in:
Martti Malmi
2024-02-04 07:50:45 +02:00
parent d42d26fc20
commit 2099eddebc
3 changed files with 4 additions and 3 deletions

View File

@ -47,6 +47,7 @@ export function useEventReactions(link: NostrLink, related: ReadonlyArray<Tagged
positive: groupReactions[Reaction.Positive] ?? [],
negative: groupReactions[Reaction.Negative] ?? [],
},
replies: reactionKinds[String(EventKind.TextNote)] ?? [],
reposts,
zaps,
others: Object.fromEntries(

View File

@ -23,7 +23,7 @@ export function useReactions(
);
for (const [, v] of Object.entries(grouped)) {
rb.withFilter().kinds([EventKind.Reaction, EventKind.Repost, EventKind.ZapReceipt]).replyToLink(v);
rb.withFilter().kinds([EventKind.TextNote, EventKind.Reaction, EventKind.Repost, EventKind.ZapReceipt]).replyToLink(v);
}
}
others?.(rb);