Add time param to Twitter share url, so that the image preview is re-fetched

This commit is contained in:
James Grugett 2022-03-08 15:36:15 -06:00
parent fe98a61e43
commit b0e4f6d27a

View File

@ -334,7 +334,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}`
}