mirror of
https://github.com/tornadocash/trusted-setup-server.git
synced 2024-11-22 01:46:52 +01:00
pass hashtag to tweet text
This commit is contained in:
parent
e2199c1a95
commit
627490bbe6
@ -12,7 +12,8 @@ TWITTER_CONSUMER_SECRET=
|
|||||||
TWITTER_CALLBACK_URL=https://ceremony.tornado.cash/api/oauth_callback/twitter
|
TWITTER_CALLBACK_URL=https://ceremony.tornado.cash/api/oauth_callback/twitter
|
||||||
TWITTER_ACCESS_TOKEN_KEY=
|
TWITTER_ACCESS_TOKEN_KEY=
|
||||||
TWITTER_ACCESS_TOKEN_SECRET=
|
TWITTER_ACCESS_TOKEN_SECRET=
|
||||||
TWITTER_HASHTAG=
|
# hashtag should be provided without # sign
|
||||||
|
NUXT_ENV_TWITTER_HASHTAG=
|
||||||
TWITTER_INTERVAL_ATTESTATION=300000
|
TWITTER_INTERVAL_ATTESTATION=300000
|
||||||
|
|
||||||
GITHUB_CLIEND_ID=
|
GITHUB_CLIEND_ID=
|
||||||
|
@ -6,7 +6,7 @@ const {
|
|||||||
TWITTER_CONSUMER_SECRET,
|
TWITTER_CONSUMER_SECRET,
|
||||||
TWITTER_ACCESS_TOKEN_KEY,
|
TWITTER_ACCESS_TOKEN_KEY,
|
||||||
TWITTER_ACCESS_TOKEN_SECRET,
|
TWITTER_ACCESS_TOKEN_SECRET,
|
||||||
TWITTER_HASHTAG,
|
NUXT_ENV_TWITTER_HASHTAG,
|
||||||
TWITTER_INTERVAL_ATTESTATION
|
TWITTER_INTERVAL_ATTESTATION
|
||||||
} = process.env
|
} = process.env
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ async function attestationWatcher() {
|
|||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
since_id: initTweet,
|
since_id: initTweet,
|
||||||
q: `#${TWITTER_HASHTAG} -filter:retweets`,
|
q: `#${NUXT_ENV_TWITTER_HASHTAG} -filter:retweets`,
|
||||||
result_type: 'recent',
|
result_type: 'recent',
|
||||||
count: 100
|
count: 100
|
||||||
}
|
}
|
||||||
|
@ -53,7 +53,7 @@ const actions = {
|
|||||||
window.location.replace(`/api/connect/${provider}`)
|
window.location.replace(`/api/connect/${provider}`)
|
||||||
},
|
},
|
||||||
makeTweet({ state }) {
|
makeTweet({ state }) {
|
||||||
const tweetText = `Just made the contribution %23${state.contributionIndex} to Tornado.cash Trusted Setup Ceremony! 🚀`
|
const tweetText = `Just made the contribution %23${state.contributionIndex} to Tornado.cash Trusted Setup Ceremony! 🚀 %23${process.env.NUXT_ENV_TWITTER_HASHTAG}`
|
||||||
const popUpWindowWidth = 600
|
const popUpWindowWidth = 600
|
||||||
const popUpWindowHeight = 250
|
const popUpWindowHeight = 250
|
||||||
const dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : window.screenX
|
const dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : window.screenX
|
||||||
|
Loading…
Reference in New Issue
Block a user