{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments/191665369","pull_request_review_id":124277188,"id":191665369,"diff_hunk":"@@ -0,0 +1,32 @@\n+const loadVideoAndSlides = function(div, videoURL, slideURL) {\n+  if(videoURL !== null && videoURL !== '') {\n+    let isVideoDisplayed = $('#desc-' + div).hasClass('in');\n+\n+    if (videoURL.indexOf('v=') !== -1) {\n+      videoURL = videoURL.split('v=')[1].replace(/[&#].*/, '');\n+    }\n+    else if (videoURL.indexOf('https://youtu.be/') !== -1) {\n+      videoURL = videoURL.split('https://youtu.be/')[1];\n+    }\n+\n+    if (!isVideoDisplayed) {\n+      $('#desc-' + div).children('div').prepend('<iframe id = \"video-' + div + '\" class = \"video-iframe col-xs-12 col-sm-12 col-md-12\" src=\"https://www.youtube.com/embed/' + videoURL + '\"></iframe>');\n+    }\n+    else {\n+      $('#video-' + div).remove();\n+    }\n+  }\n+\n+  if(slideURL !== null && slideURL !== '') {\n+    let isSlideDisplayed = $('#desc-' + div).hasClass('in');\n+\n+    if (!isSlideDisplayed) {\n+      $('#desc-' + div).children('div').prepend('<iframe id = \"slide-' + div + '\" class = \"iframe col-xs-12 col-sm-12 col-md-12\" frameborder=\"0\" src=\"https://view.officeapps.live.com/op/embed.aspx?src=' + slideURL + '\"></iframe>');\n+    }\n+    else {\n+      $('#slide-' + div).remove();","path":"src/backend/assets/js/main.js","position":27,"original_position":27,"commit_id":"f6002c832cd98a8cbe9a969007f47a6daca91b2c","original_commit_id":"f6002c832cd98a8cbe9a969007f47a6daca91b2c","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Unexpected string concatenation. (prefer-template)](https://app.codacy.com/app/triplez/open-event-webapp/pullRequest?prid=1700747)","created_at":"2018-05-30T07:26:16Z","updated_at":"2018-05-30T07:26:17Z","html_url":"https://github.com/fossasia/open-event-webapp/pull/1894#discussion_r191665369","pull_request_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1894","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments/191665369"},"html":{"href":"https://github.com/fossasia/open-event-webapp/pull/1894#discussion_r191665369"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1894"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1894","id":190771288,"html_url":"https://github.com/fossasia/open-event-webapp/pull/1894","diff_url":"https://github.com/fossasia/open-event-webapp/pull/1894.diff","patch_url":"https://github.com/fossasia/open-event-webapp/pull/1894.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/1894","number":1894,"state":"open","locked":false,"title":"Adds video support to v1 web apps","user":{"login":"agbilotia1998","id":21157929,"avatar_url":"https://avatars2.githubusercontent.com/u/21157929?v=4","gravatar_id":"","url":"https://api.github.com/users/agbilotia1998","html_url":"https://github.com/agbilotia1998","followers_url":"https://api.github.com/users/agbilotia1998/followers","following_url":"https://api.github.com/users/agbilotia1998/following{/other_user}","gists_url":"https://api.github.com/users/agbilotia1998/gists{/gist_id}","starred_url":"https://api.github.com/users/agbilotia1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agbilotia1998/subscriptions","organizations_url":"https://api.github.com/users/agbilotia1998/orgs","repos_url":"https://api.github.com/users/agbilotia1998/repos","events_url":"https://api.github.com/users/agbilotia1998/events{/privacy}","received_events_url":"https://api.github.com/users/agbilotia1998/received_events","type":"User","site_admin":false},"body":"<!-- \r\n(Thanks for sending a pull request! Please make sure you click the link above to view the contribution guidelines, then fill out the blanks below.)\r\n-->\r\n\r\n#### Checklist\r\n\r\n- [x] I have read the [Contribution & Best practices Guide](https://blog.fossasia.org/open-source-developer-guide-and-best-practices-at-fossasia).\r\n- [x] My branch is up-to-date with the Upstream `development` branch.\r\n\r\n#### Short description of what this resolves:\r\nAdds video stream feature for sessions in v1 web apps\r\n\r\nFixes #1892 \r\nPreview Link: https://agbilotia1998.github.io/Fossasia2018\r\n","created_at":"2018-05-27T05:22:56Z","updated_at":"2018-05-30T07:26:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09a0115288aefcd8c5f8109cc048d49933a5b9c3","assignee":{"login":"agbilotia1998","id":21157929,"avatar_url":"https://avatars2.githubusercontent.com/u/21157929?v=4","gravatar_id":"","url":"https://api.github.com/users/agbilotia1998","html_url":"https://github.com/agbilotia1998","followers_url":"https://api.github.com/users/agbilotia1998/followers","following_url":"https://api.github.com/users/agbilotia1998/following{/other_user}","gists_url":"https://api.github.com/users/agbilotia1998/gists{/gist_id}","starred_url":"https://api.github.com/users/agbilotia1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agbilotia1998/subscriptions","organizations_url":"https://api.github.com/users/agbilotia1998/orgs","repos_url":"https://api.github.com/users/agbilotia1998/repos","events_url":"https://api.github.com/users/agbilotia1998/events{/privacy}","received_events_url":"https://api.github.com/users/agbilotia1998/received_events","type":"User","site_admin":false},"assignees":[{"login":"agbilotia1998","id":21157929,"avatar_url":"https://avatars2.githubusercontent.com/u/21157929?v=4","gravatar_id":"","url":"https://api.github.com/users/agbilotia1998","html_url":"https://github.com/agbilotia1998","followers_url":"https://api.github.com/users/agbilotia1998/followers","following_url":"https://api.github.com/users/agbilotia1998/following{/other_user}","gists_url":"https://api.github.com/users/agbilotia1998/gists{/gist_id}","starred_url":"https://api.github.com/users/agbilotia1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agbilotia1998/subscriptions","organizations_url":"https://api.github.com/users/agbilotia1998/orgs","repos_url":"https://api.github.com/users/agbilotia1998/repos","events_url":"https://api.github.com/users/agbilotia1998/events{/privacy}","received_events_url":"https://api.github.com/users/agbilotia1998/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":634391771,"url":"https://api.github.com/repos/fossasia/open-event-webapp/labels/needs-review","name":"needs-review","color":"fef2c0","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1894/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1894/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/1894/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/f6002c832cd98a8cbe9a969007f47a6daca91b2c","head":{"label":"agbilotia1998:video_v1","ref":"video_v1","sha":"f6002c832cd98a8cbe9a969007f47a6daca91b2c","user":{"login":"agbilotia1998","id":21157929,"avatar_url":"https://avatars2.githubusercontent.com/u/21157929?v=4","gravatar_id":"","url":"https://api.github.com/users/agbilotia1998","html_url":"https://github.com/agbilotia1998","followers_url":"https://api.github.com/users/agbilotia1998/followers","following_url":"https://api.github.com/users/agbilotia1998/following{/other_user}","gists_url":"https://api.github.com/users/agbilotia1998/gists{/gist_id}","starred_url":"https://api.github.com/users/agbilotia1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agbilotia1998/subscriptions","organizations_url":"https://api.github.com/users/agbilotia1998/orgs","repos_url":"https://api.github.com/users/agbilotia1998/repos","events_url":"https://api.github.com/users/agbilotia1998/events{/privacy}","received_events_url":"https://api.github.com/users/agbilotia1998/received_events","type":"User","site_admin":false},"repo":{"id":100635799,"name":"open-event-webapp","full_name":"agbilotia1998/open-event-webapp","owner":{"login":"agbilotia1998","id":21157929,"avatar_url":"https://avatars2.githubusercontent.com/u/21157929?v=4","gravatar_id":"","url":"https://api.github.com/users/agbilotia1998","html_url":"https://github.com/agbilotia1998","followers_url":"https://api.github.com/users/agbilotia1998/followers","following_url":"https://api.github.com/users/agbilotia1998/following{/other_user}","gists_url":"https://api.github.com/users/agbilotia1998/gists{/gist_id}","starred_url":"https://api.github.com/users/agbilotia1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agbilotia1998/subscriptions","organizations_url":"https://api.github.com/users/agbilotia1998/orgs","repos_url":"https://api.github.com/users/agbilotia1998/repos","events_url":"https://api.github.com/users/agbilotia1998/events{/privacy}","received_events_url":"https://api.github.com/users/agbilotia1998/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agbilotia1998/open-event-webapp","description":"Open Event Web App Generator http://opev-webgen-dev.herokuapp.com https://sched.eventyay.com","fork":true,"url":"https://api.github.com/repos/agbilotia1998/open-event-webapp","forks_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/forks","keys_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/teams","hooks_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/hooks","issue_events_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/events","assignees_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/tags","blobs_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/languages","stargazers_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/stargazers","contributors_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/contributors","subscribers_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/subscribers","subscription_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/subscription","commits_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/merges","archive_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/downloads","issues_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/labels{/name}","releases_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/agbilotia1998/open-event-webapp/deployments","created_at":"2017-08-17T18:57:39Z","updated_at":"2018-05-08T20:33:05Z","pushed_at":"2018-05-30T07:21:30Z","git_url":"git://github.com/agbilotia1998/open-event-webapp.git","ssh_url":"git@github.com:agbilotia1998/open-event-webapp.git","clone_url":"https://github.com/agbilotia1998/open-event-webapp.git","svn_url":"https://github.com/agbilotia1998/open-event-webapp","homepage":"","size":185222,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"fossasia:development","ref":"development","sha":"4996fb9961a1264dc4b12abbd33c45782774d253","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35269905,"name":"open-event-webapp","full_name":"fossasia/open-event-webapp","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-webapp","description":"Open Event Web App Generator http://opev-webgen-dev.herokuapp.com http://sched.eventyay.com","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-webapp","forks_url":"https://api.github.com/repos/fossasia/open-event-webapp/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-webapp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-webapp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-webapp/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-webapp/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-webapp/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-webapp/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-webapp/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-webapp/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-webapp/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-webapp/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-webapp/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-webapp/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-webapp/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-webapp/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-webapp/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-webapp/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-webapp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-webapp/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-webapp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-webapp/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-webapp/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-webapp/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-webapp/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-webapp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-webapp/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-webapp/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-webapp/deployments","created_at":"2015-05-08T09:11:00Z","updated_at":"2018-05-29T08:16:01Z","pushed_at":"2018-05-30T07:21:33Z","git_url":"git://github.com/fossasia/open-event-webapp.git","ssh_url":"git@github.com:fossasia/open-event-webapp.git","clone_url":"https://github.com/fossasia/open-event-webapp.git","svn_url":"https://github.com/fossasia/open-event-webapp","homepage":"","size":317049,"stargazers_count":787,"watchers_count":787,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":775,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":775,"open_issues":26,"watchers":787,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1894"},"html":{"href":"https://github.com/fossasia/open-event-webapp/pull/1894"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/issues/1894"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/issues/1894/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1894/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/pulls/1894/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-webapp/statuses/f6002c832cd98a8cbe9a969007f47a6daca91b2c"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}