Include time param in tweet url, so image preview is re-fetched

This commit is contained in:
James Grugett 2022-03-08 15:34:58 -06:00
parent ede0c0b397
commit 90888a2cc6

View File

@ -337,7 +337,9 @@ const getTweetText = (contract: Contract, isCreator: boolean) => {
contract
)} chance, place your bets here:`
: `Submit your own answer:`
const url = `https://manifold.markets${contractPath(contract)}`
const timeParam = `${Date.now()}`.substring(7)
const url = `https://manifold.markets${contractPath(contract)}?t=${timeParam}`
return `${tweetQuestion}\n\n${tweetDescription}\n\n${url}`
}