feat: hydrate zap_message

This commit is contained in:
P. Reis 2024-09-16 13:30:43 -03:00
parent 7fea333483
commit 04a9a83fed

View file

@ -160,6 +160,8 @@ export function assembleEvents(
if (zapSender) { if (zapSender) {
event.zap_sender = b.find((e) => matchFilter({ kinds: [0], authors: [zapSender] }, e)) ?? zapSender; event.zap_sender = b.find((e) => matchFilter({ kinds: [0], authors: [zapSender] }, e)) ?? zapSender;
} }
event.zap_message = zapRequest?.content ?? '';
} }
event.author_stats = stats.authors.find((stats) => stats.pubkey === event.pubkey); event.author_stats = stats.authors.find((stats) => stats.pubkey === event.pubkey);