From 57e9534552eff11dec45ff9b2ef5fbf935cd77d9 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 24 Jan 2024 15:47:19 -0600 Subject: [PATCH] Zaps: dehydrate event before passing into LNURL callback --- src/pipeline.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pipeline.ts b/src/pipeline.ts index b0c4e4ac..86885eb6 100644 --- a/src/pipeline.ts +++ b/src/pipeline.ts @@ -7,6 +7,7 @@ import { DittoEvent } from '@/interfaces/DittoEvent.ts'; import { isEphemeralKind } from '@/kinds.ts'; import { isLocallyFollowed } from '@/queries.ts'; import { updateStats } from '@/stats.ts'; +import { dehydrateEvent } from '@/storages/hydrate.ts'; import { cache, client, eventsDB, reqmeister } from '@/storages.ts'; import { Sub } from '@/subs.ts'; import { getTagSet } from '@/tags.ts'; @@ -185,7 +186,7 @@ async function payZap(event: DittoEvent, signal: AbortSignal) { const { pr } = await LNURL.callback( details.callback, - { amount, nostr: event, lnurl }, + { amount, nostr: dehydrateEvent(event), lnurl }, { fetch: fetchWorker, signal }, );