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 committed by GitHub
parent 11497ab270
commit aa20048b2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {