Revert "stop posting to the wrong nostr account"

This reverts commit 2136c1a11f4bba6fac5bed1b734ec650466d074e.
This commit is contained in:
k00b 2025-03-26 12:36:55 -05:00
parent 2136c1a11f
commit 71fdd873c5
2 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,6 @@ TWITTER_POSTER_API_KEY=
TWITTER_POSTER_API_KEY_SECRET= TWITTER_POSTER_API_KEY_SECRET=
TWITTER_POSTER_ACCESS_TOKEN= TWITTER_POSTER_ACCESS_TOKEN=
TWITTER_POSTER_ACCESS_TOKEN_SECRET= TWITTER_POSTER_ACCESS_TOKEN_SECRET=
NOSTR_POSTER_PRIVATE_KEY=
######################################## ########################################
# SNDEV STUFF WE PRESET # # SNDEV STUFF WE PRESET #

View File

@ -38,13 +38,13 @@ const RELAYS = [
] ]
async function postToNostr ({ message }) { async function postToNostr ({ message }) {
if (!process.env.NOSTR_POSTER_PRIVATE_KEY) { if (!process.env.NOSTR_PRIVATE_KEY) {
console.log('Nostr poster not configured') console.log('Nostr poster not configured')
return return
} }
const nostr = Nostr.get() 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 { try {
await nostr.publish({ await nostr.publish({
created_at: Math.floor(new Date().getTime() / 1000), created_at: Math.floor(new Date().getTime() / 1000),