Merge pull request #26 from Permissionless-Software-Foundation/ct-unstable

fix(nostr): Tagging posts with BCH address
This commit is contained in:
Chris Troutner
2025-06-30 08:12:30 -07:00
committed by GitHub
@@ -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)}`)