From 04a9a83fedece9bc51c26001e648f5f5679df21a Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Mon, 16 Sep 2024 13:30:43 -0300 Subject: [PATCH] feat: hydrate zap_message --- src/storages/hydrate.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/storages/hydrate.ts b/src/storages/hydrate.ts index 17267391..e2f69e18 100644 --- a/src/storages/hydrate.ts +++ b/src/storages/hydrate.ts @@ -160,6 +160,8 @@ export function assembleEvents( if (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);