The discussion revolves around improving Reddit image oneboxing in Discourse. marcozambi noticed inconsistent behavior: some Reddit links generate rich oneboxes with metadata (like title, site name, and thumbnail), while others only show the embedded image without context. j.jaffeux explains this is due to Reddit’s Open Graph tags — links with og:type=website render as full oneboxes, while og:type=image only show the image. marcozambi argues this is insufficient for proper attribution, as it lacks branding or source info, making it look like a raw image embed. supermathie clarifies Discourse follows Reddit’s metadata and suggests Instagram’s approach (with og:type=instapp:photo) as a possible model — showing title, site name, and image in a branded box. marcozambi agrees Instagram’s style is ideal. Later, j.jaffeux confirms both cases now render correctly, though one had a broken image due to Reddit’s 403 error — which was later resolved.
Not sure if this is expected and how to check if it is, but sometimes the oneboxing of reddit topics returns a properly formatted Onebox, like in this case: https://www.reddit.com/r/spacex/comments/ain1kk/elon_musk_why_im_building_the_starship_out_of/
whereas some other time we just get the topic thumbnail/first-post picture, like here https://www.reddit.com/r/SpaceXLounge/comments/airsly/crew_dragon_on_the_pad_ahead_of_tomorrows_static/
Thanks @j.jaffeux.
I understand the concept, but still my opinion is that in the second case it’s a pity not to have this enclosed in a proper OneBox that would have the some elements of the first oneboxing (a squared box, a mini reddit logo and website name).
The second oneboxing is indistinguishable from an embedded hardlinked image, which does not provide elements to give proper credits and reference to the source. This might be seen as being rude to the person that published his material on reddit and that we want to embed OneBox in our forum giving proper reference.
Certainly I can provide the link to the post in a separated raw, but still…
The second case has a broken image, but it’s reddit having an og:image property with an URL returning a 403, not much we can do.EDIT: seems like it’s working now