mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 19:24:13 +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. |
||
---|---|---|
.. | ||
backups | ||
csv | ||
db | ||
emails | ||
encodings | ||
feed | ||
i18n | ||
images | ||
json | ||
md | ||
media | ||
mmdb | ||
multisite | ||
onebox | ||
plugins | ||
scss | ||
site_settings | ||
theme_settings | ||
themes | ||
woff2 |