mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 14:13:21 +00:00
proxy-resized banner imgs
This commit is contained in:
parent
193d564a2e
commit
7a0d7ee9c1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user