proxy-resized banner imgs

This commit is contained in:
Martti Malmi 2023-08-08 16:03:29 +03:00
parent 14c18a4f8c
commit cf32a8c603

View File

@ -208,7 +208,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);