MM-10360 Only show link previews if they have a url defined (#1655)

This commit is contained in:
Harrison Healey 2018-05-07 04:40:55 -04:00 committed by Saturnino Abril
parent 4d506b6e4d
commit 4b11195120

View file

@ -217,7 +217,7 @@ export default class PostAttachmentOpenGraph extends PureComponent {
const {isReplyPost, openGraphData, theme} = this.props;
const {hasImage, height, imageUrl, width} = this.state;
if (!openGraphData || openGraphData.description == null) {
if (!openGraphData || !openGraphData.url) {
return null;
}