Onebox prevents new user posting due to multiple preview images

AI-generated summary

A bug was reported where new users were blocked from posting links due to multiple preview images generated by the onebox feature. tfoote explained that while posting a link with a paragraph, the onebox embedded several thumbnails, triggering the system’s limit on the number of images allowed for new users. This prevented the post from being submitted, as the error message indicated the user had exceeded the two-image limit. sam identified this as a bug, noting that oneboxes should typically be excluded from such image counts. techAPJ confirmed the issue was specific to default_html_providers (such as Flickr and Meetup) and announced that a fix had been implemented via a commit to the onebox engine. The resolution is expected to be deployed soon, allowing new users to post links with oneboxes without being blocked by embedded thumbnail counts.

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:

(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:

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

3 إعجابات

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

@techAPJ can you have a look

4 إعجابات

This issue was specific to default_html_providers (i.e. Flickr, Meetup). Fixed via:

https://github.com/discourse/onebox/commit/d82e6b02e04e503d47ab09e770bdd9866fb211c3

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

4 إعجابات