@ecency/render-helper 2.4.21 → 2.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/node/index.cjs
CHANGED
|
@@ -398,7 +398,7 @@ function img(el, state) {
|
|
|
398
398
|
}
|
|
399
399
|
const cls = el.getAttribute("class") || "";
|
|
400
400
|
const shouldReplace = !cls.includes("no-replace");
|
|
401
|
-
const hasAlreadyProxied = src.startsWith("https://images.ecency.com");
|
|
401
|
+
const hasAlreadyProxied = src.startsWith("https://images.ecency.com/p/") || src.startsWith("https://images.ecency.com/u/") || /^https:\/\/images\.ecency\.com\/\d+x\d+\//.test(src);
|
|
402
402
|
if (shouldReplace && !hasAlreadyProxied) {
|
|
403
403
|
const proxified = proxifyImageSrc(decodedSrc);
|
|
404
404
|
if (proxified) {
|