mirror of
https://github.com/tornadocash/trusted-setup-server.git
synced 2024-11-24 10:59:45 +01:00
fix env hashtag
This commit is contained in:
parent
b793827b30
commit
3e4df53381
@ -13,7 +13,7 @@ TWITTER_CALLBACK_URL=https://ceremony.tornado.cash/api/oauth_callback/twitter
|
||||
TWITTER_ACCESS_TOKEN_KEY=
|
||||
TWITTER_ACCESS_TOKEN_SECRET=
|
||||
# hashtag should be provided without # sign
|
||||
NUXT_ENV_TWITTER_HASHTAG=
|
||||
TWITTER_HASHTAG=
|
||||
TWITTER_INTERVAL_ATTESTATION=300000
|
||||
|
||||
GITHUB_CLIEND_ID=
|
||||
|
@ -123,5 +123,8 @@ module.exports = {
|
||||
server: {
|
||||
port: 3000, // default: 3000
|
||||
host: '0.0.0.0' // default: localhost
|
||||
},
|
||||
env: {
|
||||
hashtag: process.env.TWITTER_HASHTAG
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ const {
|
||||
TWITTER_CONSUMER_SECRET,
|
||||
TWITTER_ACCESS_TOKEN_KEY,
|
||||
TWITTER_ACCESS_TOKEN_SECRET,
|
||||
NUXT_ENV_TWITTER_HASHTAG,
|
||||
TWITTER_HASHTAG,
|
||||
TWITTER_INTERVAL_ATTESTATION,
|
||||
NODE_ENV
|
||||
} = process.env
|
||||
@ -31,7 +31,7 @@ function attestationWatcher() {
|
||||
|
||||
const params = {
|
||||
since_id: initTweet,
|
||||
q: `#${NUXT_ENV_TWITTER_HASHTAG} -filter:retweets`,
|
||||
q: `#${TWITTER_HASHTAG} -filter:retweets`,
|
||||
result_type: 'recent',
|
||||
count: 100
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ const actions = {
|
||||
window.location.replace(`/api/connect/${provider}`)
|
||||
},
|
||||
makeTweet({ state }) {
|
||||
const tweetText = `Just made the contribution %23${state.contributionIndex} to @TornadoCash Trusted Setup Ceremony! 🚀 %23${process.env.NUXT_ENV_TWITTER_HASHTAG}`
|
||||
const tweetText = `Just made the contribution %23${state.contributionIndex} to @TornadoCash Trusted Setup Ceremony! 🚀 %23${process.env.hashtag}`
|
||||
const popUpWindowWidth = 600
|
||||
const popUpWindowHeight = 250
|
||||
const dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : window.screenX
|
||||
|
Loading…
Reference in New Issue
Block a user