Test more twitter thumbnail stuff

This commit is contained in:
Thomas Zarebczan 2021-10-08 10:44:22 -04:00 committed by GitHub
parent 181f17ce6b
commit 3077c778c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,8 +37,8 @@ function getThumbnailCdnUrl(url) {
const width = 630;
const height = 1200;
if (url && !url.includes('https://spee.ch')) {
return `${THUMBNAIL_CDN_URL}s:${width}:${height}/quality:${THUMBNAIL_QUALITY}/plain/${url}`;
if (url && url.includes('https://twitter-card')) {
return url;
}
if (url && url.includes('https://spee.ch') && !url.includes('?quality=')) {