proxy-resized banner imgs

This commit is contained in:
Martti Malmi 2023-08-08 16:03:29 +03:00
parent 193d564a2e
commit 7a0d7ee9c1

View File

@ -167,7 +167,7 @@ class Profile extends View {
}
banner = isSafeOrigin(banner)
? banner
: `https://imgproxy.iris.to/insecure/plain/${banner}`;
: `https://imgproxy.iris.to/insecure/rs:fill:948:192/plain/${banner}`;
this.setState({ banner });
} catch (e) {
console.log('Invalid banner URL', profile.banner);