From 71fdd873c542e50b41f9cb054249497678dee169 Mon Sep 17 00:00:00 2001 From: k00b Date: Wed, 26 Mar 2025 12:36:55 -0500 Subject: [PATCH] Revert "stop posting to the wrong nostr account" This reverts commit 2136c1a11f4bba6fac5bed1b734ec650466d074e. --- .env.development | 1 - worker/socialPoster.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index f0cf6655..7f6af164 100644 --- a/.env.development +++ b/.env.development @@ -37,7 +37,6 @@ TWITTER_POSTER_API_KEY= TWITTER_POSTER_API_KEY_SECRET= TWITTER_POSTER_ACCESS_TOKEN= TWITTER_POSTER_ACCESS_TOKEN_SECRET= -NOSTR_POSTER_PRIVATE_KEY= ######################################## # SNDEV STUFF WE PRESET # diff --git a/worker/socialPoster.js b/worker/socialPoster.js index 462b1a6c..77cb418f 100644 --- a/worker/socialPoster.js +++ b/worker/socialPoster.js @@ -38,13 +38,13 @@ const RELAYS = [ ] async function postToNostr ({ message }) { - if (!process.env.NOSTR_POSTER_PRIVATE_KEY) { + if (!process.env.NOSTR_PRIVATE_KEY) { console.log('Nostr poster not configured') return } const nostr = Nostr.get() - const signer = nostr.getSigner({ privKey: process.env.NOSTR_POSTER_PRIVATE_KEY }) + const signer = nostr.getSigner({ privKey: process.env.NOSTR_PRIVATE_KEY }) try { await nostr.publish({ created_at: Math.floor(new Date().getTime() / 1000),