# Onebox prevents new user posting due to multiple preview images

**URL:** https://meta.discourse.org/t/onebox-prevents-new-user-posting-due-to-multiple-preview-images/46413
**Category:** Bug
**Created:** [24 Giugno 2016, 6:05pm UTC](https://meta.discourse.org/t/onebox-prevents-new-user-posting-due-to-multiple-preview-images/46413 "2016-06-24T18:05:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tfoote](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tfoote/32/120929_2.png) [@tfoote](https://meta.discourse.org/u/tfoote)
#### Post date: [24 Giugno 2016, 6:05pm UTC](https://meta.discourse.org/t/onebox-prevents-new-user-posting-due-to-multiple-preview-images/46413/1 "2016-06-24T18:05:32Z")

</div>

I had a new user try to post a link with a paragraph. However the onebox had multiple images embedded in it. And this broke the limit of the number of images that the new user is allowed.

The post in question:

> **[ROS Seattle meetup 2016/7/14 CoMotion makerspace](https://discourse.openrobotics.org/t/ros-seattle-meetup-2016-7-14-comotion-makerspace/293)**
>
> CoMotion is at the University of Washington, they have a Kobuki Turtlebot 2 base, the Elcano project will show off their robot (which isn’t a ROS robot, but is interesting regardless), and I’ll go over a xacro/urdf example 4-wheel mobile robot...

> (If I put http in the above link, a nice preview appears, but I can’t post it because ‘Sorry, new users can only put 2 images in a post.’, but by lopping off the http I still get a usable link at least)

I fixed the link for him, and attached you can see that the onebox has several thumbnails:

 ![](https://global.discourse-cdn.com/meta/original/3X/8/4/84b311960a92ba26fd9c0411efc1974031796895.png)

It would be great if these embedded images did not block the new users from posting links with onebox.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [27 Giugno 2016, 7:09am UTC](https://meta.discourse.org/t/onebox-prevents-new-user-posting-due-to-multiple-preview-images/46413/2 "2016-06-27T07:09:21Z")

</div>

This looks like a bug, afaik oneboxes should be excluded.

@techAPJ can you have a look

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [29 Giugno 2016, 4:10pm UTC](https://meta.discourse.org/t/onebox-prevents-new-user-posting-due-to-multiple-preview-images/46413/3 "2016-06-29T16:10:29Z")

</div>

This issue was specific to [default\_html\_providers](https://github.com/discourse/onebox/blob/a0141e81201ab313c154d1c8d5ef3c4865c1ea25/lib/onebox/engine/whitelisted_generic_onebox.rb#L139) (i.e. Flickr, Meetup). Fixed via:

[https://github.com/discourse/onebox/commit/d82e6b02e04e503d47ab09e770bdd9866fb211c3](https://github.com/discourse/onebox/commit/d82e6b02e04e503d47ab09e770bdd9866fb211c3)

This fix will be deployed on your instance soon @tfoote. Thanks for reporting this issue 👍

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [29 Giugno 2016, 4:10pm UTC](https://meta.discourse.org/t/onebox-prevents-new-user-posting-due-to-multiple-preview-images/46413/4 "2016-06-29T16:10:41Z")

</div>


