Update user tagging in payment processor and bump version to v0.17.11
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled

- 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.
This commit is contained in:
2025-10-21 20:05:45 +01:00
parent 8287035920
commit 7f5bd3960c
2 changed files with 3 additions and 3 deletions

View File

@@ -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)