mlem icon indicating copy to clipboard operation
mlem copied to clipboard

Double image proxy confuses bypass logic

Open Sjmarf opened this issue 9 months ago • 1 comments

E.g. https://lemmy.ml/api/v3/image_proxy?url=https%3A%2F%2Fsopuli.xyz%2Fapi%2Fv3%2Fimage_proxy%3Furl%3Dhttps%253A%252F%252Ftenor.com%252FVdlE.gif

I'm guessing that we just need to modify whatever piece of code is extracting the original URL from the proxy URL to consider the possibility of there being more than one proxy.

Sjmarf avatar Mar 23 '25 07:03 Sjmarf

MediaLoader is supposed to handle this as currently written by recursively stripping the last proxy bypass parameter off the url and re-calling load with that new url. It looks like computeProxyBypass isn't behaving as expected.

EricBAndrews avatar Mar 30 '25 14:03 EricBAndrews