diff options
author | Asaad Mahmood <Unknowngi@live.com> | 2015-10-18 18:55:22 +0500 |
---|---|---|
committer | Asaad Mahmood <Unknowngi@live.com> | 2015-10-18 18:55:22 +0500 |
commit | 3a1636b7cea9805c16fcd626917de01a51c6cb2f (patch) | |
tree | 8ca5a24b77573908207905092bdefad7125ffbc6 /web/react/components/post_body.jsx | |
parent | 7849a48a859302e9d3e3ed14f3de380705f3ba78 (diff) | |
parent | 7e457dd8d9ad0e22be7dd7753bb37a611303c808 (diff) | |
download | chat-3a1636b7cea9805c16fcd626917de01a51c6cb2f.tar.gz chat-3a1636b7cea9805c16fcd626917de01a51c6cb2f.tar.bz2 chat-3a1636b7cea9805c16fcd626917de01a51c6cb2f.zip |
Merge branch 'master' of https://github.com/mattermost/platform into ui-improvements
Diffstat (limited to 'web/react/components/post_body.jsx')
-rw-r--r-- | web/react/components/post_body.jsx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx index 1db0b12e7..fb838b736 100644 --- a/web/react/components/post_body.jsx +++ b/web/react/components/post_body.jsx @@ -116,7 +116,7 @@ export default class PostBody extends React.Component { } var metadata = data.items[0].snippet; this.receivedYoutubeData = true; - this.setState({youtubeUploader: metadata.channelTitle, youtubeTitle: metadata.title}); + this.setState({youtubeTitle: metadata.title}); } if (global.window.config.GoogleDeveloperKey && !this.receivedYoutubeData) { @@ -134,18 +134,12 @@ export default class PostBody extends React.Component { header = header + ' - '; } - let uploader = this.state.youtubeUploader; - if (!uploader) { - uploader = 'unknown'; - } - return ( <div className='post-comment'> <h4> <span className='video-type'>{header}</span> <span className='video-title'><a href={link}>{this.state.youtubeTitle}</a></span> </h4> - <h4 className='video-uploader'>{uploader}</h4> <div className='video-div embed-responsive-item' id={youtubeId} |