mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-03 17:40:56 +01:00
Update mosaic URL structure
This commit is contained in:
parent
b72b9ea0bf
commit
d7737b9a0f
2 changed files with 3 additions and 3 deletions
|
@ -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]}`;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name = "pxtwitter"
|
||||
name = "fixtweet"
|
||||
account_id = "[CLOUDFLARE_ACCOUNT_ID]"
|
||||
workers_dev = true
|
||||
main = "./dist/worker.js"
|
||||
|
|
Loading…
Add table
Reference in a new issue