The discussion addresses a regression where GitHub repository and organization links no longer generate Discourse onebox previews, while links to specific files within those repositories still function correctly imrehg. The issue is suspected to stem from recent GitHub design changes that removed OpenGraph or oEmbed metadata from repository landing pages imrehg.
While initial debugging using Iframely suggested the metadata was present, deeper investigation by cpradio revealed that Discourse’s onebox API returns a 404 error for these URLs. This points to GitHub no longer providing the necessary tags on the repo homepage. However, imrehg noted that Iframely reports no embed code for file links that Discourse successfully previews, suggesting Discourse employs specific hard-coded logic for GitHub URLs in addition to standard oEmbed support codinghorror. Consequently, the general repository links fail, while specific file links continue to work due to this special handling.
Discourse has really great preview cards for links in general, dropping in a link on a new line (onebox previews).
Recently I’ve found, though, that Github repository links no longer have any previews (I think they had before), while linking to a specific file on Github has. For example posting https://github.com/resin-io-playground/awesome-resin-io:
You mean on Github’s? They seem to have updated their design (styling) as mentioned above, so that might cause issues extracting stuff, but iframely seems to say that at least the part they test for works? (even though I’m not sure if the extracted text/icons are the same as they were presented in the onebox before, or how the iframely test really compares to what the onebox should show)
Edit: Looking at this again, I think GitHub broke this. I could have sworn they used to provide og/oembed tags on the Repo landing page, but now it is definitely not there. Welcome to Iframely