# 支持更好地对 Reddit 图片进行一键嵌入？

**URL:** <https://meta.discourse.org/t/add-support-for-better-oneboxing-of-reddit-images/107282>\
**Category:** Feature\
**Created:** [2019年一月23日 12:58 UTC](https://meta.discourse.org/t/add-support-for-better-oneboxing-of-reddit-images/107282 "2019-01-23T12:58:31Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcozambi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcozambi/32/119505_2.png) [@marcozambi](https://meta.discourse.org/u/marcozambi)\
**Post date:** [2019年一月23日 12:58 UTC](https://meta.discourse.org/t/add-support-for-better-oneboxing-of-reddit-images/107282/1 "2019-01-23T12:58:31Z")

</div>

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/`  
https://embed.reddit.com/r/spacex/comments/ain1kk/elon_musk_why_im_building_the_starship_out_of/?embed=true&ref_source=embed&ref=share

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/`  
https://embed.reddit.com/r/SpaceXLounge/comments/airsly/crew_dragon_on_the_pad_ahead_of_tomorrows_static/?embed=true&ref_source=embed&ref=share

Is this an intended behavior?

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2019年一月23日 13:33 UTC](https://meta.discourse.org/t/add-support-for-better-oneboxing-of-reddit-images/107282/2 "2019-01-23T13:33:36Z")

</div>

Yes it’s intended (or at least explainable).

First one is a comment with a link to another page.  
Second on is a comment with an image embedded in.

---

<div class="post-metadata">

**Author:** ![marcozambi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcozambi/32/119505_2.png) [@marcozambi](https://meta.discourse.org/u/marcozambi)\
**Post date:** [2019年一月23日 17:05 UTC](https://meta.discourse.org/t/add-support-for-better-oneboxing-of-reddit-images/107282/3 "2019-01-23T17:05:23Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [2019年一月23日 17:20 UTC](https://meta.discourse.org/t/add-support-for-better-oneboxing-of-reddit-images/107282/4 "2019-01-23T17:20:52Z")

</div>

We’re displaying what Reddit is asking us to display. FIrst link:

| Tag | Content |
| --- | --- |
| og:site\_name | reddit |
| og:title | r/spacex - Elon Musk: Why I’m Building the Starship out of Stainless Steel |
| og:type | website |
| og:url | [Reddit - Please wait for verification](https://www.reddit.com/r/spacex/comments/ain1kk/elon_musk_why_im_building_the_starship_out_of/) |
| og:description | 8,335 votes and 1,452 comments so far on Reddit |
| og:image | [Reddit - Please wait for verification](https://external-preview.redd.it/bbE7P0-WGeBQHfWQ4iYUv63Kliri7AKXYYnPq-xZC1s.jpg?auto=webp&s=065d000b6ad6dec9f740c9340b0a496b70d09b66) |
| og:image:width | 415 |
| og:image:height | 208 |

Second link:

| Tag | Content |
| --- | --- |
| og:site\_name | reddit |
| og:title | r/SpaceXLounge - Crew Dragon on the pad ahead of tomorrow’s static fire test. |
| og:type | image |
| og:url | [Reddit - Please wait for verification](https://www.reddit.com/r/SpaceXLounge/comments/airsly/crew_dragon_on_the_pad_ahead_of_tomorrows_static/) |
| og:description | 607 votes and 53 comments so far on Reddit |
| og:image | [Reddit - Please wait for verification](https://preview.redd.it/qet22w9pl1c21.jpg?auto=webp&s=1f488e4fd3577fc60399d71fcba012f65ca67e0c) |
| og:image:width | 2250 |
| og:image:height | 4000 |

Seems like you’d perhaps prefer it to look like what Instagram does (note the different `og:type`)? I can see the argument for that.

[https://www.instagram.com/p/lszr6HrKL8/](https://www.instagram.com/p/lszr6HrKL8/)

| Tag | Content |
| --- | --- |
| og:site\_name | Instagram |
| og:title | Instagram post by Taylor Buley • Mar 18, 2014 at 10:06pm UTC |
| og:image | [https://scontent-frx5-1.cdninstagram.com/vp/92b7df3d109a4ded56a53f408b85a374/5CE2142E/t51.2885-15/e15/11248375\_1434033010252199\_777127894\_n.jpg?\_nc\_ht=scontent-frx5-1.cdninstagram.com](https://scontent-frx5-1.cdninstagram.com/vp/92b7df3d109a4ded56a53f408b85a374/5CE2142E/t51.2885-15/e15/11248375_1434033010252199_777127894_n.jpg?_nc_ht=scontent-frx5-1.cdninstagram.com) |
| og:description | 2 Likes, 0 Comments - Taylor Buley (@taylorbuley) on Instagram |
| fb:app\_id | 124024574287414 |
| og:url | [https://www.instagram.com/p/lszr6HrKL8/](https://www.instagram.com/p/lszr6HrKL8/) |
| og:type | instapp:photo |

---

<div class="post-metadata">

**Author:** ![marcozambi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcozambi/32/119505_2.png) [@marcozambi](https://meta.discourse.org/u/marcozambi)\
**Post date:** [2019年一月23日 17:26 UTC](https://meta.discourse.org/t/add-support-for-better-oneboxing-of-reddit-images/107282/5 "2019-01-23T17:26:01Z")

</div>

First of all, thanks for the extensive clarification! 👏

To answer your question, yes, this Instagram example would perfect (and imvho also better looking).

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2019年五月27日 12:50 UTC](https://meta.discourse.org/t/add-support-for-better-oneboxing-of-reddit-images/107282/10 "2019-05-27T12:50:39Z")

</div>

Both cases are now working fine:

https://embed.reddit.com/r/SpaceXLounge/comments/bqrd72/a_3dprinted_crew_dragon/?embed=true&ref_source=embed&ref=share

https://embed.reddit.com/r/spacex/comments/ain1kk/elon_musk_why_im_building_the_starship_out_of/?embed=true&ref_source=embed&ref=share

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 🧙

---

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [2019年五月27日 12:50 UTC](https://meta.discourse.org/t/add-support-for-better-oneboxing-of-reddit-images/107282/11 "2019-05-27T12:50:47Z")

</div>


