Page 1 of 1

Support for OpenGraph/TwitterCard

Posted: Wed Jul 01, 2020 1:47 pm
by Aerdan
We should add OpenGraph and Twitter Card data for at least threads and user profiles.

For threads, this would look like

Code: Select all

<meta property="og:title"> content="thread title goes here"/>
<meta property="og:description" content="info about the thread, e.g. author and post count goes here"/>
<meta property="twitter:card" content="summary"/>
<meta property="twitter:title" content="see og:title, same shit"/>
<meta property="twitter:description" content="same as og:description"/>
This allows Discord to do its nifty little previews. og:image and twitter:image would allow an image to be attached to the preview, but I'm not sure how feasible that is.