From afe0d004fe48e4d2c7492d6c0918a34f30c2ce13 Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Mon, 5 Oct 2015 11:52:06 -0400
Subject: Fix missed binding for youtube data callback.

---
 web/react/components/post_body.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/components/post_body.jsx')

diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx
index 48b268700..6cfd243de 100644
--- a/web/react/components/post_body.jsx
+++ b/web/react/components/post_body.jsx
@@ -125,7 +125,7 @@ export default class PostBody extends React.Component {
                 url: 'https://www.googleapis.com/youtube/v3/videos',
                 type: 'GET',
                 data: {part: 'snippet', id: youtubeId, key: global.window.config.GoogleDeveloperKey},
-                success
+                success: success.bind(this)
             });
         }
 
-- 
cgit v1.2.3-1-g7c22

