From b0e4f6d27a8e5b52cdb29b0ce90ec40f7f08eeaa Mon Sep 17 00:00:00 2001 From: James Grugett Date: Tue, 8 Mar 2022 15:36:15 -0600 Subject: [PATCH] Add time param to Twitter share url, so that the image preview is re-fetched --- web/components/contract-card.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/contract-card.tsx b/web/components/contract-card.tsx index 36bfd26b..cadf7764 100644 --- a/web/components/contract-card.tsx +++ b/web/components/contract-card.tsx @@ -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}` }