From 1f571a6c133f58c0b8c9717eb5c99fb7a291637a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 4 Feb 2025 09:56:42 -0800 Subject: fix P tag in zap receipt --- lib/nostr.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/nostr.ts b/lib/nostr.ts index 4fb92b86..a4735822 100644 --- a/lib/nostr.ts +++ b/lib/nostr.ts @@ -87,7 +87,7 @@ export async function handleZap(invoice, sender = undefined) { const tags = [ptag]; if (etag) tags.push(etag); if (atag) tags.push(atag); - if (sender) tags.push(["P", sender]); + if (sender) tags.push(["P", zapreq.pubkey]); tags.push(["bolt11", invoice.bolt11]); tags.push(["description", invoice.description]); -- cgit v1.2.3