Zaps: dehydrate event before passing into LNURL callback

This commit is contained in:
Alex Gleason 2024-01-24 15:47:19 -06:00
parent b4735d1dd3
commit 57e9534552
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 1 deletions

View File

@ -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 },
);