mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-04 10:00:55 +01:00
Removed Telegram block from mosaic
This commit is contained in:
parent
b2e22524d8
commit
656d3b3b0c
1 changed files with 2 additions and 3 deletions
|
@ -283,11 +283,10 @@ export const handleStatus = async (
|
|||
console.log(`Media ${mediaNumber} found`);
|
||||
actualMediaNumber = mediaNumber - 1;
|
||||
processMedia(mediaList[actualMediaNumber]);
|
||||
} else if (mediaList.length === 1 || (userAgent?.indexOf?.('Telegram') || '') > -1) {
|
||||
} else if (mediaList.length === 1 ) {
|
||||
console.log(`Media ${mediaNumber} not found, ${mediaList.length} total`);
|
||||
processMedia(firstMedia);
|
||||
// Telegram hates Mosaic media for some reason
|
||||
} else if (mediaList.length > 1 && userAgent?.indexOf('Telegram') === -1) {
|
||||
} else if (mediaList.length > 1) {
|
||||
console.log('Handling mosaic');
|
||||
processMedia(await handleMosaic(mediaList));
|
||||
renderedMosaic = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue