Merge remote-tracking branch 'origin/main' into connections

This commit is contained in:
Alex Gleason 2024-05-28 16:01:49 -05:00
commit 5d05d1d570
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -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]);