mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 10:16:19 +08:00
fff8a24f2b
`Onebox.preview` can return 0-to-n errors, where the errors are missing OpenGraph attributes (e.g. title, description, image, etc.). If any of these attributes are missing, we construct an error message and attach it to the Oneboxer preview HTML. The error message is something like: “Sorry, we were unable to generate a preview for this web page, because the following oEmbed / OpenGraph tags could not be found: description, image” However, if the only missing tag is `image` we don’t need to display the error, as we have enough other data (title, description, etc.) to construct a useful/complete Onebox. |
||
---|---|---|
.. | ||
instagram_new.response | ||
instagram_old.response | ||
missing_description_and_image.response | ||
missing_description.response | ||
missing_image.response | ||
video_missing_description.response |