diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2016-01-04 17:45:06 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2016-01-04 17:45:06 -0500 |
commit | 5a2100547532c8026ee34bfa44b883de3a233fd9 (patch) | |
tree | 597d8c8be9a7f15f20ac68c5650312547f2663f7 /web/react/components/post_body.jsx | |
parent | 537b7a3b7168f4c1fa91dc679cdfe0d19c0b10ac (diff) | |
download | chat-5a2100547532c8026ee34bfa44b883de3a233fd9.tar.gz chat-5a2100547532c8026ee34bfa44b883de3a233fd9.tar.bz2 chat-5a2100547532c8026ee34bfa44b883de3a233fd9.zip |
Make Youtube previews stop when the channel is changed
Diffstat (limited to 'web/react/components/post_body.jsx')
-rw-r--r-- | web/react/components/post_body.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx index d139cd388..b1657f0eb 100644 --- a/web/react/components/post_body.jsx +++ b/web/react/components/post_body.jsx @@ -120,7 +120,12 @@ export default class PostBody extends React.Component { } if (YoutubeVideo.isYoutubeLink(link)) { - return <YoutubeVideo link={link} />; + return ( + <YoutubeVideo + channelId={post.channel_id} + link={link} + /> + ); } for (let i = 0; i < Constants.IMAGE_TYPES.length; i++) { |