diff --git a/.env.development b/.env.development index 7f6af164..f0cf6655 100644 --- a/.env.development +++ b/.env.development @@ -37,6 +37,7 @@ 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 77cb418f..462b1a6c 100644 --- a/worker/socialPoster.js +++ b/worker/socialPoster.js @@ -38,13 +38,13 @@ const RELAYS = [ ] async function postToNostr ({ message }) { - if (!process.env.NOSTR_PRIVATE_KEY) { + if (!process.env.NOSTR_POSTER_PRIVATE_KEY) { console.log('Nostr poster not configured') return } const nostr = Nostr.get() - const signer = nostr.getSigner({ privKey: process.env.NOSTR_PRIVATE_KEY }) + const signer = nostr.getSigner({ privKey: process.env.NOSTR_POSTER_PRIVATE_KEY }) try { await nostr.publish({ created_at: Math.floor(new Date().getTime() / 1000),