mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
ca20f3a6b0
refs https://github.com/TryGhost/Ghost/issues/9623 - add `oembed-parser` module for checking provider availability for a url and fetching data from the provider - require it in the `overrides.js` file before the general Promise override so that the `promise-wrt` sub-dependency doesn't attempt to extend the Bluebird promise implementation - add `/oembed` authenticated endpoint - takes `?url=` query parameter to match against known providers - adds safeguard against oembed-parser's providers list not recognising http+https and www+non-www - responds with `ValidationError` if no provider is found - responds with oembed response from matched provider's oembed endpoint if match is found |
||
---|---|---|
.. | ||
authentication.js | ||
clients.js | ||
configuration.js | ||
db.js | ||
index.js | ||
invites.js | ||
mail.js | ||
notifications.js | ||
oembed.js | ||
posts.js | ||
redirects.js | ||
roles.js | ||
schedules.js | ||
settings.js | ||
slack.js | ||
slugs.js | ||
subscribers.js | ||
tags.js | ||
themes.js | ||
upload.js | ||
users.js | ||
utils.js | ||
webhooks.js |