disable esteem image resizer

This commit is contained in:
feruz 2019-12-16 07:44:00 +02:00
parent 1d80940bf4
commit 18952752c9

View File

@ -74,7 +74,7 @@ export const getResizedImage = (url, size = 640) => {
if (!url) { if (!url) {
return ''; return '';
} }
/*
if (url.includes('img.esteem.ws')) { if (url.includes('img.esteem.ws')) {
return `${url.replace('img.esteem.ws/', `img.esteem.ws/${size}/`)}`; return `${url.replace('img.esteem.ws/', `img.esteem.ws/${size}/`)}`;
} }
@ -82,7 +82,7 @@ export const getResizedImage = (url, size = 640) => {
if (url.includes('img.esteem.app')) { if (url.includes('img.esteem.app')) {
return `${url.replace('img.esteem.app/', `img.esteem.app/${size}/`)}`; return `${url.replace('img.esteem.app/', `img.esteem.app/${size}/`)}`;
} }
*/
return `https://steemitimages.com/${size}x0/${url}`; return `https://steemitimages.com/${size}x0/${url}`;
}; };