hackclub / sinerider

💖 A game about love and graphing, built by teenagers.
https://sinerider.com
GNU Affero General Public License v3.0
548 stars 46 forks source link

Short hack to hide share links and only show limited twitter prefill #539

Closed maxwofford closed 1 year ago

maxwofford commented 1 year ago

This is a quick hack to only show the twitter flow on the share dialogue because at the time of writing the reddit prefill doesn't 100% work and the leaderboard can't be posted to (the twitter bot is undergoing changes)

Screenshot 2023-05-08 at 13 14 04

This also updates the twitter message to just show a human message because we don't expect the bot to respond to these.

Screenshot 2023-05-08 at 13 13 26
vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
sinerider ✅ Ready (Inspect) Visit Preview May 8, 2023 7:05pm
maxwofford commented 1 year ago

This change relies on https://github.com/hackclub/dns/pull/887 and https://github.com/hackclub/sinerider-api/pull/11

vercel[bot] commented 1 year ago

Deployment failed with the following error:

`headers[0]` should NOT have additional property `redirects`
maxwofford commented 1 year ago

Update, now it shows a human readable formula and includes a link to the daily puzzle

Screenshot 2023-05-08 at 14 52 07
vercel[bot] commented 1 year ago

Deployment failed with the following error:

Redirect at index 0 has invalid `source` pattern "/puzzle/?nick=(?<id>[^/]+)".

Learn More: https://vercel.link/invalid-route-source-pattern

maxwofford commented 1 year ago

It works! Now sinerider.com/puzzle/:puzzlename redirects to that puzzle stored in airtable