Fix channel display on Twitter OG
This commit is contained in:
parent
8448c8655c
commit
496c90db0e
1 changed files with 2 additions and 1 deletions
|
@ -143,7 +143,8 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}, referrerQuery) {
|
||||||
const mediaDuration = media && media.duration;
|
const mediaDuration = media && media.duration;
|
||||||
const claimTitle = escapeHtmlProperty((value && value.title) || claimName);
|
const claimTitle = escapeHtmlProperty((value && value.title) || claimName);
|
||||||
const releaseTime = (value && value.release_time) || (meta && meta.creation_timestamp) || 0;
|
const releaseTime = (value && value.release_time) || (meta && meta.creation_timestamp) || 0;
|
||||||
const liveStream = !source;
|
const isStream = claim && claim.value_type === 'stream';
|
||||||
|
const liveStream = isStream && !source;
|
||||||
const mediaHeight = (media && media.height) || '720';
|
const mediaHeight = (media && media.height) || '720';
|
||||||
const mediaWidth = (media && media.width) || '1280';
|
const mediaWidth = (media && media.width) || '1280';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue