diff options
Diffstat (limited to 'webapp/components/post_view/post_attachment_opengraph/index.js')
-rw-r--r-- | webapp/components/post_view/post_attachment_opengraph/index.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/webapp/components/post_view/post_attachment_opengraph/index.js b/webapp/components/post_view/post_attachment_opengraph/index.js deleted file mode 100644 index 1f889f1d6..000000000 --- a/webapp/components/post_view/post_attachment_opengraph/index.js +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import {connect} from 'react-redux'; -import {getCurrentUser} from 'mattermost-redux/selectors/entities/users'; -import {bindActionCreators} from 'redux'; -import {getOpenGraphMetadata} from 'mattermost-redux/actions/posts'; -import {getOpenGraphMetadataForUrl} from 'mattermost-redux/selectors/entities/posts'; - -import PostAttachmentOpenGraph from './post_attachment_opengraph.jsx'; - -function mapStateToProps(state, ownProps) { - return { - ...ownProps, - openGraphData: getOpenGraphMetadataForUrl(state, ownProps.link), - currentUser: getCurrentUser(state), - }; -} - -function mapDispatchToProps(dispatch) { - return { - actions: bindActionCreators({ - getOpenGraphMetadata - }, dispatch) - }; -} - -export default connect(mapStateToProps, mapDispatchToProps)(PostAttachmentOpenGraph); |