mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 05:13:04 +03:00
disable esteem image resizer
This commit is contained in:
parent
1d80940bf4
commit
18952752c9
@ -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}`;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user