Properly check if link is an image when link is shortened (#2441)

This commit is contained in:
Elias Nahum 2018-12-10 09:19:43 -03:00
parent c0be2808fa
commit 143c88d0c4
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -489,7 +489,7 @@ export default class PostBodyAdditionalContent extends PureComponent {
}
const isYouTube = isYoutubeLink(link);
const isImage = this.isImage();
const isImage = this.isImage(link);
const isOpenGraph = Boolean(openGraphData);
if (((isImage && !isOpenGraph) || isYouTube) && !linkLoadError) {