From 7eb5ff7821fc102f609ac2bb2965e7c02f31ab35 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Mon, 30 Jun 2025 08:11:11 -0700 Subject: [PATCH] fix(nostr): Tagging posts with BCH address --- src/components/app-body/nostr/nostr-post/public-post.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/app-body/nostr/nostr-post/public-post.js b/src/components/app-body/nostr/nostr-post/public-post.js index aaff65e..7abd4c4 100644 --- a/src/components/app-body/nostr/nostr-post/public-post.js +++ b/src/components/app-body/nostr/nostr-post/public-post.js @@ -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)}`)