MessageLinkEmbeds: prefer attachment proxyURL (#4543)
This commit is contained in:
parent
587f40dae6
commit
bf68eee20d
1 changed files with 1 additions and 1 deletions
|
|
@ -356,7 +356,7 @@ function AutomodEmbedAccessory(props: MessageEmbedProps): JSX.Element | null {
|
||||||
const { width, height } = computeWidthAndHeight(a.width, a.height);
|
const { width, height } = computeWidthAndHeight(a.width, a.height);
|
||||||
return (
|
return (
|
||||||
<div key={idx}>
|
<div key={idx}>
|
||||||
<img src={a.url} width={width} height={height} />
|
<img src={a.proxyURL ?? a.url} width={width} height={height} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue