diff options
| author | Adam Soltys <[email protected]> | 2025-02-04 09:56:42 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-02-04 09:56:42 -0800 |
| commit | 1f571a6c133f58c0b8c9717eb5c99fb7a291637a (patch) | |
| tree | 77a3c07b427344446419f861dce34be23b8628ad | |
| parent | 9db94553094af6003b61fc049a568483ad8d2ef4 (diff) | |
| download | coinos-server-1f571a6c133f58c0b8c9717eb5c99fb7a291637a.tar.gz coinos-server-1f571a6c133f58c0b8c9717eb5c99fb7a291637a.zip | |
fix P tag in zap receipt
| -rw-r--r-- | lib/nostr.ts | 2 |
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]); |
