Ghost/ghost/oembed-service
jbenezech 75811f35bc
🐛 Fixed embedded cards for non-utf8 content (#15578)
closes: https://github.com/TryGhost/Ghost/issues/14973

- When fetching content using a non-standard charset, characters were notproperly decoded to utf-8 resulting in mangled text in the editor -> Detect charset and use iconv to decode the page text

- When requesting a non bookmark card, if no oembed data could be foundand we fallback to bookmark, a second network request to fetch the content was issued. This seemed unnecessary -> refactored to avoid that
2022-10-13 12:19:47 +01:00
..
lib 🐛 Fixed embedded cards for non-utf8 content (#15578) 2022-10-13 12:19:47 +01:00
test Extracted oembed service to separate package 2022-08-15 10:07:06 +02:00
.eslintrc.js Extracted oembed service to separate package 2022-08-15 10:07:06 +02:00
index.js Extracted oembed service to separate package 2022-08-15 10:07:06 +02:00
package.json 🐛 Fixed embedded cards for non-utf8 content (#15578) 2022-10-13 12:19:47 +01:00
README.md Extracted oembed service to separate package 2022-08-15 10:07:06 +02:00

Oembed Service

Oembed service for Ghost

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests