diff --git a/app/utils/SlateEditor/Image.js b/app/utils/SlateEditor/Image.js index 2c297d5c927b6affdc26b7fac15824c88c17eeaa..32f63442058e2c5fee1c5a73029e22ae562b55a7 100644 --- a/app/utils/SlateEditor/Image.js +++ b/app/utils/SlateEditor/Image.js @@ -81,7 +81,7 @@ class Image extends React.Component { const isFocused = state.selection.hasEdgeIn(node) const className = isFocused ? 'active' : null - const prefix = $STM_Config.img_proxy_prefix ? ($STM_Config.img_proxy_prefix + '0x0/') : '' + const prefix = $STM_Config.img_proxy_prefix ? ($STM_Config.img_proxy_prefix + '1680x8400/') : '' const alt = node.data.get('alt') const src = node.data.get('src') diff --git a/shared/HtmlReady.js b/shared/HtmlReady.js index 3e9be5eb308a5bde47fa809b978e9308e792f392..32457a8e5b3b2fcc0a7d7052421892e6aa8810d1 100644 --- a/shared/HtmlReady.js +++ b/shared/HtmlReady.js @@ -162,14 +162,14 @@ function img(state, child) { } } -// For all img elements with non-local URLs, prepend the proxy URL (e.g. `https://img0.steemit.com/0x0/`) +// For all img elements with non-local URLs, prepend the proxy URL (e.g. `https://img0.steemit.com/1680x8400/`) function proxifyImages(doc) { if (!$STM_Config.img_proxy_prefix) return if (!doc) return; [...doc.getElementsByTagName('img')].forEach(node => { const url = node.getAttribute('src') if(! linksRe.local.test(url)) - node.setAttribute('src', $STM_Config.img_proxy_prefix + '0x0/' + url) + node.setAttribute('src', $STM_Config.img_proxy_prefix + '1680x8400/' + url) }) }