Onebox - strange behavior with a specific link

(David García-Navas) #1

When i paste the following link on the editor, it seems that it will be oneboxed, but it shows all the content from the post:

It’s strange because Onebox works well for the other entries from that blog.


(Sam Saffron) #2

This looks like a bug with the wordpress oneboxer.

(Arpit Jalan) #3

This is not a onebox bug because the above WordPress oEmbed is returning the entire article. See:

You may need to tweak your WordPress theme settings.

(David García-Navas) #4

Thanks @techAPJ!

I think you can close the topic, then :slightly_smiling:

(Arpit Jalan) #5

(Kane York) #6

I still think that if an entire article gets returned, it needs to get enclosed in a <blockquote>.

(Jeff Atwood) #7

We should protect ourselves from badly structured oEmbed @techapj someone was just complaining about this on BBS. If the size is above (x) bytes, then take a different strategy, perhaps forcefully truncate the content.

(Arpit Jalan) #8

Okay, done via

Now, if the size of oEmbed data is more than 4000 bytes, onebox will fallback to OpenGraph data (which is always reliable).

Here’s the above (WordPress) onebox with OpenGraph data: