Browse Source

Update user tagging in payment processor and bump version to v0.17.11

- Modified the user tagging logic in the payment processor to include a mention in the third field of the "p" tag.
- Incremented the version number to v0.17.11 for the release.
main
mleku 3 months ago
parent
commit
7f5bd3960c
No known key found for this signature in database
  1. 4
      app/payment_processor.go
  2. 2
      pkg/version/version

4
app/payment_processor.go

@ -781,8 +781,8 @@ Enjoy your time on the relay!`, string(userNpub), monthlyPrice, monthlyPrice, @@ -781,8 +781,8 @@ Enjoy your time on the relay!`, string(userNpub), monthlyPrice, monthlyPrice,
ev.Content = []byte(content)
ev.Tags = tag.NewS()
// Add "p" tag for the user
*ev.Tags = append(*ev.Tags, tag.NewFromAny("p", hex.Enc(userPubkey)))
// Add "p" tag for the user with mention in third field
*ev.Tags = append(*ev.Tags, tag.NewFromAny("p", hex.Enc(userPubkey), "", "mention"))
// Add expiration tag (5 days from creation)
noteExpiry := time.Now().AddDate(0, 0, 5)

2
pkg/version/version

@ -1 +1 @@ @@ -1 +1 @@
v0.17.10
v0.17.11
Loading…
Cancel
Save