Properly check if link is an image when link is shortened (#2441)
This commit is contained in:
parent
11497ab270
commit
aa20048b2b
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue