fix(nostr): Tagging posts with BCH address

This commit is contained in:
Chris Troutner
2025-06-30 08:11:11 -07:00
parent 8a982d2ef2
commit 7eb5ff7821
@@ -47,11 +47,14 @@ function PublicPost (props) {
// Relay list
const psf = 'wss://nostr-relay.psfoundation.info'
// BCH address of the user.
const bchAddr = bchWalletState.address
// Generate a post.
const eventTemplate = {
kind: 1,
created_at: Math.floor(Date.now() / 1000),
tags: [['t', 'slpdex-socialmedia']],
tags: [['t', 'slpdex-socialmedia'], ['u', bchAddr]],
content: formData.content
}
console.log(`eventTemplate: ${JSON.stringify(eventTemplate, null, 2)}`)