add P tag to tag sender

This commit is contained in:
Pablo Fernandez
2023-12-31 23:01:28 +00:00
parent adc8abdc98
commit 444a02fcca
+1
View File
@@ -400,6 +400,7 @@ func CreateNostrReceipt(zapEvent nostr.Event, invoice string) (nostr.Event, erro
Kind: 9735,
Tags: nostr.Tags{
*zapEvent.Tags.GetFirst([]string{"p"}),
[]string{"P", zapEvent.PubKey},
[]string{"bolt11", invoice},
[]string{"description", string(zapEventSerialized)},
},