0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Added include data to Twitter embed

refs https://github.com/TryGhost/Team/issues/1001

This data is required to render information for linked content, for
example images, polls, and mentioned users.
This commit is contained in:
Fabien egg O'Carroll 2021-12-06 13:11:06 +02:00
parent ea54393e88
commit e43296f1d7

View file

@ -66,6 +66,7 @@ class TwitterOEmbedProvider {
const body = JSON.parse(result.body);
oembedData.tweet_data = body.data;
oembedData.tweet_data.includes = body.includes;
} catch (err) {
this.dependencies.logging.error(err);
}