Fix channel display on Twitter OG

This commit is contained in:
Thomas Zarebczan 2022-03-18 09:53:57 -04:00
parent 8448c8655c
commit 496c90db0e
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2

View file

@ -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';