This commit is contained in:
Matthew Hodgson 2018-05-05 22:08:37 +01:00
parent aa370b3b67
commit 14bcfdd5c6

View file

@ -161,7 +161,10 @@ export default class extends React.Component {
return this.state.decryptedThumbnailUrl;
}
return this.state.decryptedUrl;
} else if (content.info.mimetype == "image/svg+xml" && content.info.thumbnail_url) {
} else if (content.info &&
content.info.mimetype == "image/svg+xml" &&
content.info.thumbnail_url)
{
// special case to return client-generated thumbnails for SVGs, if any,
// given we deliberately don't thumbnail them serverside to prevent
// billion lol attacks and similar