Closed calebccff closed 1 year ago
Instructions for easy local testing:
Make your changes, npm start
, install ngrok
and run ngrok http 5000
to tunnel your local server to the wider web.
Head to https://cards-dev.twitter.com/validator and paste the ngrok link to generate card previews.
hi, any update on this?
Hey! Is there anything I can do get this reviewed/merged?
This change is great and more than welcome! Thanks for suggesting it :)
It looks like only the landing page of matrix.to would get a Twitter card though. Pasting a link to a room returns ERROR: Required meta tag missing (twitter:url)
on Twitter's card validator.
Any idea what could cause this?
Add embeds to make matrix invite links more obvious on twitter.
Links to matrix rooms are easily lost on twitter, especially if the same tweet includes a link to a site with embed support, example:![image](https://user-images.githubusercontent.com/12273817/143042235-9087d5f6-c6e2-4f22-af65-075ff576cb7f.png)
Add meta tags for twitter so that if matrix.to links are posted first, they will be used for the embed, this will make them more obvious / appealing to click, this PR will result in tweets with matrix.to links looking like the following instead:
The title/description is just pulled from matrix.org, maintainers may want to make this something matrix.to specific or choose something that better represents the platform in this context.