aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-02-04 09:56:42 -0800
committerAdam Soltys <[email protected]>2025-02-04 09:56:42 -0800
commit1f571a6c133f58c0b8c9717eb5c99fb7a291637a (patch)
tree77a3c07b427344446419f861dce34be23b8628ad
parent9db94553094af6003b61fc049a568483ad8d2ef4 (diff)
downloadcoinos-server-1f571a6c133f58c0b8c9717eb5c99fb7a291637a.tar.gz
coinos-server-1f571a6c133f58c0b8c9717eb5c99fb7a291637a.zip
fix P tag in zap receipt
-rw-r--r--lib/nostr.ts2
1 files changed, 1 insertions, 1 deletions
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]);