Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
May 8, 2023

Conversation

maxwofford
Copy link
Member

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
Copy link

vercel bot commented May 8, 2023

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
Copy link
Member Author

This change relies on hackclub/dns#887 and hackclub/sinerider-api#11

@vercel
Copy link

vercel bot commented May 8, 2023

Deployment failed with the following error:

`headers[0]` should NOT have additional property `redirects`

@maxwofford
Copy link
Member Author

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
Copy link

vercel bot commented May 8, 2023

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
Copy link
Member Author

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

@maxwofford maxwofford merged commit 8943e91 into main May 8, 2023
@maxwofford maxwofford deleted the shorten-share-links-to-just-twitter branch May 8, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant