2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-20 18:52:44 +08:00

Fixes regression with video embeds

This commit is contained in:
Robin Ward 2013-03-21 20:47:44 -04:00
parent 2620d68fc0
commit ee5213be5f
4 changed files with 31 additions and 8 deletions

View file

@ -24,7 +24,7 @@ class CookedPostProcessor
args[:invalidate_oneboxes] = true if @opts[:invalidate_oneboxes]
Oneboxer.each_onebox_link(@doc) do |url, element|
onebox = Oneboxer.onebox(url, args)
onebox, preview = Oneboxer.onebox(url, args)
if onebox
element.swap onebox
@dirty = true