see writeup here: https://omarshehata.substack.com/p/fighting-twitters-censorship-of-substack
Twitter artificially limits the reach of substack links. They do not display the preview card like other links to, and tweets get limited reach if they link specifically to substack. This is a workaround.
deployed at:
project page on glitch: https://glitch.com/~substack-proxy
before / after
Example page source (with ?noredirect param so you can view source). It will appear blank, because it only has meta tags and a JS snippet to redirect to the substack article:
Clone this repo. Install node/pnpm (https://pnpm.io/installation).
pnpm installto install node dependencies- Run
env.batto set environmant variables pnpm watchto run the server with auto-reload
src/server.js is the server code. views/index.handlebars is the main page.
This is an extremely low-tech thing, you can even do it yourself by hand!
- This is the template that it generates
- You can copy this info from the substack HTML page (or fill it yourself with whatever you need it to say)
- You can put this HTML page anywhere that is publicly accessible, then share that on twitter, and it will look like a substack article, and redirect to it.
Even if they banned this glitch app, anyone can host this on their own website, or on any free static host like glitch/codepen/replit etc.
If my app ever breaks or catches fire and burns, the URLs it generates are derived from the original URLs, so no data is lost (a quick google search will find the original article).
I debated preserving the original URL as-is by base64-encoding it, but that sacrifices readability.
