diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/api/util/utility/EmbedHandlers.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/api/util/utility/EmbedHandlers.ts b/src/api/util/utility/EmbedHandlers.ts index f39db9c3..0f1e88a5 100644 --- a/src/api/util/utility/EmbedHandlers.ts +++ b/src/api/util/utility/EmbedHandlers.ts @@ -121,6 +121,7 @@ export const getMetaDescriptions = (text: string) => { height: tryParseInt(getMeta($, "og:image:height")), url: getMeta($, "og:url"), youtube_embed: getMeta($, "og:video:secure_url"), + site_name: getMeta($, "og:site_name"), $, }; @@ -216,6 +217,12 @@ export const EmbedHandlers: { title: metas.title, thumbnail: makeEmbedImage(metas.image, metas.width, metas.height), description: metas.description, + provider: metas.site_name + ? { + name: metas.site_name, + url: url.origin, + } + : undefined, }; }, |