Discourse can embed imgur albums and galleries by simply entering the link. erlend_sh discovered this feature and shared an example. However, this feature broke, and mik01aj reported that it no longer worked.
techAPJ found that imgur changed its metadata, making it difficult for Discourse to detect albums. A temporary workaround was to use the imgur API, but it requires registration.
The issue was later fixed via commits to the Discourse codebase (techAPJ, zogstrip, and gerhard). However, some users still experienced issues with album embeds, including not being able to scroll through images (Alankrit_Choudh) and broken links (leo.proctor). These issues were also addressed in subsequent commits.
We just found this feature by accident on our forum today. Here’s an embedded imgur gallery, simply by entering the link http://imgur.com/a/PWgY0?gallery
So nifty! I dunno if the Discourse devs did something specifically for imgur recently or if it’s just a result of imgur’s new and improved embeds initiative (are they more OpenGraph compatible now?).
Imgur albums are not getting (properly) oneboxed anymore..
It seems like Imgur changed metadata info recently and there is no way to detect if the link is an image or album by looking at just metadata info.
Previously there used to be multiple twitter metadata image tags to indicate that the link is an album, but they are not present anymore.
The only way to work around is this is to use Imgur API, but the API only allows access to registered application, as per:
This version of the API, version 3, uses OAuth 2.0. This means that all requests will need to be encrypted and sent via SSL/TLS to https://. It also means that you need to register your application, even if you aren’t allowing users to login.