Add test embed domain to rule out cards
This commit is contained in:
parent
b49fed4cf5
commit
9dbee19961
1 changed files with 5 additions and 0 deletions
|
@ -32,6 +32,11 @@ function getThumbnailCdnUrl(url) {
|
|||
if (!THUMBNAIL_CARDS_CDN_URL || !url) {
|
||||
return url;
|
||||
}
|
||||
|
||||
if (url && url.includes('https://twitter-card')) {
|
||||
return url;
|
||||
}
|
||||
|
||||
if (url) {
|
||||
const encodedURL = Buffer.from(url).toString('base64');
|
||||
return `${THUMBNAIL_CARDS_CDN_URL}${encodedURL}.jpg`;
|
||||
|
|
Loading…
Reference in a new issue