MessageLinkEmbeds: prefer attachment proxyURL (#4543)

This commit is contained in:
thororen 2026-08-25 19:35:43 -04:00 • committed by GitHub
parent 587f40dae6
commit bf68eee20d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>
); );
})} })}