Revert "stop posting to the wrong nostr account"
This reverts commit 2136c1a11f4bba6fac5bed1b734ec650466d074e.
This commit is contained in:
		
							parent
							
								
									2136c1a11f
								
							
						
					
					
						commit
						71fdd873c5
					
				@ -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                #
 | 
			
		||||
 | 
			
		||||
@ -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),
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user