Skip to content

Commit

Permalink
MM-10360 Only show OpenGraph previews if they have a url defined (mat…
Browse files Browse the repository at this point in the history
  • Loading branch information
hmhealey authored and saturninoabril committed May 4, 2018
1 parent f50a0f1 commit 63e9ec6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default class PostAttachmentOpenGraph extends React.PureComponent {

render() {
const data = this.props.openGraphData;
if (!data || data.description == null || this.state.removePreview) {
if (!data || !data.url || this.state.removePreview) {
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"localforage": "1.5.6",
"localforage-observable": "1.4.0",
"marked": "mattermost/marked#4bc7e5f00c324d2eadec6b932224871497af6f7c",
"mattermost-redux": "github:mattermost/mattermost-redux#fab078f80ce57d9e827d09cc936383e794b7ab71",
"mattermost-redux": "github:mattermost/mattermost-redux#b1bb31daf58d5ec88f4f14627d6fe655d1570c03",
"moment-timezone": "0.5.14",
"pdfjs-dist": "2.0.290",
"perfect-scrollbar": "0.8.1",
Expand Down

0 comments on commit 63e9ec6

Please sign in to comment.