notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit c5df47dc73eb502a99152fc992bf4e86250dd26b
parent ea857990070e459825963d00f69fce8ef0e4fb88
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 11 Aug 2025 12:37:14 -0700

clndash: dont forget CLNDASH_ID

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_clndash/README.md | 1+
Mcrates/notedeck_clndash/src/lib.rs | 6+++---
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/crates/notedeck_clndash/README.md b/crates/notedeck_clndash/README.md @@ -51,6 +51,7 @@ If you’re reading this and still excited — you’re the exact audience. 2. Set them as environment variables: ```bash + export CLNDASH_ID="03f3c108ccd536b8526841f0a5c58212bb9e6584a1eb493080e7c1cc34f82dad71" export CLNDASH_HOST="node.example.com:9735" export CLNDASH_RUNE="your_rune_here" ``` diff --git a/crates/notedeck_clndash/src/lib.rs b/crates/notedeck_clndash/src/lib.rs @@ -97,9 +97,9 @@ impl ClnDash { tokio::spawn(async move { let key = SecretKey::new(&mut rand::thread_rng()); - let their_pubkey = PublicKey::from_str( - "03f3c108ccd536b8526841f0a5c58212bb9e6584a1eb493080e7c1cc34f82dad71", - ) + let their_pubkey = PublicKey::from_str(&std::env::var("CLNDASH_ID").unwrap_or( + "03f3c108ccd536b8526841f0a5c58212bb9e6584a1eb493080e7c1cc34f82dad71".to_string(), + )) .unwrap(); let host = std::env::var("CLNDASH_HOST").unwrap_or("ln.damus.io:9735".to_string());