diff --git a/src/mosaic.ts b/src/mosaic.ts index 5a32b58..d499c06 100644 --- a/src/mosaic.ts +++ b/src/mosaic.ts @@ -31,8 +31,8 @@ export const handleMosaic = async ( // console.log('mosaicMedia', mosaicMedia); // TODO: use a better system for this, 0 gets png 1 gets webp, usually let constructUrl = `https://${selectedDomain}/${ - userAgent.indexOf('Telegram') > -1 ? '0' : '1' - }`; + userAgent.indexOf('Telegram') > -1 ? 'jpeg' : 'webp' + }/0`; if (mosaicMedia[0]) { constructUrl += `/${mosaicMedia[0]}`; } diff --git a/wrangler.example.toml b/wrangler.example.toml index b937b0e..094b2d5 100644 --- a/wrangler.example.toml +++ b/wrangler.example.toml @@ -1,4 +1,4 @@ -name = "pxtwitter" +name = "fixtweet" account_id = "[CLOUDFLARE_ACCOUNT_ID]" workers_dev = true main = "./dist/worker.js"