diff --git a/go.mod b/go.mod index 4627d2d..be0a36b 100644 --- a/go.mod +++ b/go.mod @@ -88,7 +88,6 @@ require ( github.com/lnpay/lnpay-go v1.1.0 github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/miekg/dns v1.1.58 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/prometheus/client_golang v1.19.0 // indirect diff --git a/nostr.go b/nostr.go index b0721e1..5b28bdf 100644 --- a/nostr.go +++ b/nostr.go @@ -437,6 +437,14 @@ func CreateNostrReceipt(zapEvent nostr.Event, invoice string) (nostr.Event, erro nip57Receipt.Tags = nip57Receipt.Tags.AppendUnique(*eTag) } + if aTags := zapEvent.Tags.GetAll([]string{"a"}); aTags != nil { + for _, s := range aTags { + if s.Key() == "a" { + nip57Receipt.Tags = nip57Receipt.Tags.AppendUnique(s) + } + } + } + err = nip57Receipt.Sign(nostrPrivkeyHex) if err != nil { return nostr.Event{}, err