Use resolve for OG metadata #6787

Merged
btzr-io merged 7 commits from fix-og-meta into master 2021-08-07 13:53:49 +02:00
Showing only changes of commit 45fcf0d518 - Show all commits

View file

@ -217,7 +217,7 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}) {
function buildGoogleVideoMetadata(uri, claim) {
const { claimName } = parseURI(uri);
const { meta, value } = claim;
const media = value && (value.video || value.audio || value.image);
const media = value && value.video;
const source = value && value.source;
const thumbnail = value && value.thumbnail && value.thumbnail.url;
const mediaType = source && source.media_type;