mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 11:23:47 +08:00
We currently rely on Open Graph data to render YouTube oneboxes.
However, YouTube does not always give us a response with the Open Graph
data necessary, leading to empty preview HTML like this that shows
as a broken image in the composer:
```
<img src="" width="480" height="360" title=" - YouTube" style="aspect-ratio: 480 / 360;">
```
In addition, our old method of parsing YouTube script tags for JSON
which contains information for the video, introduced in
|
||
|---|---|---|
| .. | ||
| engine | ||
| domain_checker_spec.rb | ||
| engine_spec.rb | ||
| helpers_spec.rb | ||
| json_ld_spec.rb | ||
| layout_spec.rb | ||
| matcher_spec.rb | ||
| movie_spec.rb | ||
| oembed_spec.rb | ||
| open_graph_spec.rb | ||
| preview_spec.rb | ||
| status_check_spec.rb | ||