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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/post_view/post_attachment_opengraph/index.js b/webapp/components/post_view/post_attachment_opengraph/index.js index e0bec8f36..1f889f1d6 100644 --- a/webapp/components/post_view/post_attachment_opengraph/index.js +++ b/webapp/components/post_view/post_attachment_opengraph/index.js @@ -2,6 +2,7 @@ // 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'; @@ -11,7 +12,8 @@ import PostAttachmentOpenGraph from './post_attachment_opengraph.jsx'; function mapStateToProps(state, ownProps) { return { ...ownProps, - openGraphData: getOpenGraphMetadataForUrl(state, ownProps.link) + openGraphData: getOpenGraphMetadataForUrl(state, ownProps.link), + currentUser: getCurrentUser(state), }; } |