0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/api
Fabien O'Carroll 8ccf27340b Oembed meta tag fallback for unknown providers (#9827)
closes #9786

- Make GET request when url has no provider match
  - The HEAD request was made in order to send less data over the wire when
checking for redirects for urls that do not have an oembed provider
match. We are now going to look for provider metatags withing the
response of the request - rather than making a HEAD followed by a GET if
no redirect is found, this condenses that to a single request.

- Try to get OEmbed data from tag if no provider
  - Here we parse the HTML response of the resource and look for a link tag
that will give us the oembed resource url which we can use to fetch the
embed html
2018-08-27 15:02:03 +01:00
..
authentication.js ES6 migration: server/api (#9733) 2018-07-23 14:38:40 +02:00
clients.js ES6 migration: server/api (#9733) 2018-07-23 14:38:40 +02:00
configuration.js ES6 migration: server/api (#9756) 2018-07-30 12:28:05 +02:00
db.js Renamed core/server/data/export to core/server/data/exporter 2018-08-16 12:13:24 +02:00
index.js Changed comments and deprecation notes 2018-08-16 12:13:24 +02:00
invites.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
mail.js Updated docs links 2018-08-16 12:13:24 +02:00
notifications.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
oembed.js Oembed meta tag fallback for unknown providers (#9827) 2018-08-27 15:02:03 +01:00
posts.js Changed comments and deprecation notes 2018-08-16 12:13:24 +02:00
redirects.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
roles.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
schedules.js Moved zip folder, read csv and package-json to lib/fs 2017-12-14 22:07:53 +01:00
settings.js 🔥 Removed permalink setting 2018-08-16 12:13:24 +02:00
slack.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
slugs.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
subscribers.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
tags.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
themes.js Fixed tests 2018-08-16 12:13:24 +02:00
upload.js Added ability to upload/reload routes.yaml 2018-08-16 12:13:24 +02:00
users.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
utils.js Changed comments and deprecation notes 2018-08-16 12:13:24 +02:00
webhooks.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00