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:
parent
2620d68fc0
commit
ee5213be5f
4 changed files with 31 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue