From 4b11195120f6e2dd444708450869f758d675d4ae Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Mon, 7 May 2018 04:40:55 -0400 Subject: [PATCH] MM-10360 Only show link previews if they have a url defined (#1655) --- .../post_attachment_opengraph/post_attachment_opengraph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/post_attachment_opengraph/post_attachment_opengraph.js b/app/components/post_attachment_opengraph/post_attachment_opengraph.js index 3a96929cc..19ae04baf 100644 --- a/app/components/post_attachment_opengraph/post_attachment_opengraph.js +++ b/app/components/post_attachment_opengraph/post_attachment_opengraph.js @@ -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; }