Onebox embedded content not appearing in discussions embedded in blog


(Tobias Eigen) #1

This blog post has comments powered by a discourse topic. In my reply to the topic, I included a link to a youtube video. It is not appearing below the blog post in the comments, while it does show up in the accompanying discourse topic. I think this is a bug because I expect it to appear in both places. If onebox is not supported, at least it should display the URL to the embedded content.

Screenshot of comment in blog:


Screenshot of comment in discourse:


(Arpit Jalan) #2

This is a legit bug, I am on it.


(Arpit Jalan) #3

Okay, I just pushed a fix for this:

https://github.com/discourse/wp-discourse/commit/7e288c481dd0342a2d9ee28037e78198f26d9c27

Can you update the plugin and try again? Thanks for reporting it!


(Tobias Eigen) #4

I just updated to master and the bug is still showing on my site.

Are we using the same plugin? I used @eviltrout’s recipe for static sites for my drupal site, not a wordpress plugin. Do I need to update the embed code I used on my blog?


(Arpit Jalan) #5

Nope, I fixed the wordpress plugin.

Yes, in that case you will need to update the embed code. The fix is relatively easy though, you will need to inject custom javascript, have a look at the wordpress fix:

https://github.com/discourse/wp-discourse/blob/master/js/discourse.js

The above javascript code is all that is required to fix the youtube embedding issue.


(Arpit Jalan) #6

Fixed via

https://github.com/discourse/discourse/pull/3419

Now embedded comments will include YouTube video link.


(Arpit Jalan) #7