summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_body.jsx
diff options
context:
space:
mode:
authorFlorian Orben <florian.orben@gmail.com>2015-10-17 02:52:46 +0200
committerFlorian Orben <florian.orben@gmail.com>2015-10-17 02:52:46 +0200
commitaa40f88bbbca68089e8fad144f590f27e3afa3da (patch)
treea14c12f53d58a57e08ebcf679184cd28f933f3e6 /web/react/components/post_body.jsx
parent8ea76b0ada2cbe1914307f3edf0658e7f342a91e (diff)
downloadchat-aa40f88bbbca68089e8fad144f590f27e3afa3da.tar.gz
chat-aa40f88bbbca68089e8fad144f590f27e3afa3da.tar.bz2
chat-aa40f88bbbca68089e8fad144f590f27e3afa3da.zip
PLT-463: Remove AUTHOR from YouTube preview not helpful and takes up too much room
Diffstat (limited to 'web/react/components/post_body.jsx')
-rw-r--r--web/react/components/post_body.jsx8
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}