mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
feat: hydrate zap_message
This commit is contained in:
parent
7fea333483
commit
04a9a83fed
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue