From a519637beeaa9e0985ec6f2b3bbe65e2b7deebce Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Tue, 28 May 2024 17:40:10 -0300 Subject: [PATCH] fix(pipeline-zap): allow 'event' to proceed even without 'user' field --- src/pipeline.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipeline.ts b/src/pipeline.ts index fd5fc99..0db46c9 100644 --- a/src/pipeline.ts +++ b/src/pipeline.ts @@ -191,7 +191,7 @@ function processMedia({ tags, pubkey, user }: DittoEvent) { /** Emit Nostr Wallet Connect event from zaps so users may pay. */ async function payZap(event: DittoEvent, signal: AbortSignal) { - if (event.kind !== 9734 || !event.user) return; + if (event.kind !== 9734) return; const lnurl = event.tags.find(([name]) => name === 'lnurl')?.[1]; const amount = Number(event.tags.find(([name]) => name === 'amount')?.[1]);