{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/comments/26273905","id":26273905,"diff_hunk":"@@ -254,32 +246,32 @@ angular\n       $scope.weblit = weblit;\n \n       $scope.wlcPoints = CONFIG.wlcPoints;\n-\n     }\n   ])\n   .controller('competencyMediaGenController', ['$scope', '$sce',\n     function ($scope, $sce) {\n       function safeUrl(media) {\n-        switch (media.type) {\n-        case 'youtube':\n-          return $sce.trustAsResourceUrl('https://www.youtube-nocookie.com/embed/' + media.content + '?enablejsapi=1&amp;wmode=transparent&amp;autohide=1&amp;autoplay=0&amp;rel=0&amp;fs=1&amp;hd=1&amp;rel=0&amp;showinfo=0&amp;start=&amp;theme=dark');\n-        case 'vimeo':\n-          return $sce.trustAsResourceUrl('https://player.vimeo.com/video/' + media.content + '?title=0&amp;byline=0&amp;portrait=0&amp;color=eb6933');\n-        case 'ted':\n-          return $sce.trustAsResourceUrl('https://embed-ssl.ted.com/talks/' + media.content + '.html');\n-        case 'popcorn':\n-          return $sce.trustAsResourceUrl(media.content);\n-        default:\n+        var sources = {\n+          // jscs:disable maximumLineLength","path":"public/js/angular/controllers.js","position":171,"original_position":171,"commit_id":"60fc6374dc1d7e369d839b9c8129cc80953acd3a","original_commit_id":"60fc6374dc1d7e369d839b9c8129cc80953acd3a","user":{"login":"ScottDowne","id":197334,"avatar_url":"https://avatars.githubusercontent.com/u/197334?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottDowne","html_url":"https://github.com/ScottDowne","followers_url":"https://api.github.com/users/ScottDowne/followers","following_url":"https://api.github.com/users/ScottDowne/following{/other_user}","gists_url":"https://api.github.com/users/ScottDowne/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottDowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottDowne/subscriptions","organizations_url":"https://api.github.com/users/ScottDowne/orgs","repos_url":"https://api.github.com/users/ScottDowne/repos","events_url":"https://api.github.com/users/ScottDowne/events{/privacy}","received_events_url":"https://api.github.com/users/ScottDowne/received_events","type":"User","site_admin":false},"body":"Gooood call.\r\n\r\nWas 2 more long strings that I was missing because of my oversight here.","created_at":"2015-03-12T02:18:06Z","updated_at":"2015-03-12T02:18:06Z","html_url":"https://github.com/mozilla/webmaker.org/pull/1369#discussion_r26273905","pull_request_url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1369","_links":{"self":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/comments/26273905"},"html":{"href":"https://github.com/mozilla/webmaker.org/pull/1369#discussion_r26273905"},"pull_request":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1369"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1369","id":30588353,"html_url":"https://github.com/mozilla/webmaker.org/pull/1369","diff_url":"https://github.com/mozilla/webmaker.org/pull/1369.diff","patch_url":"https://github.com/mozilla/webmaker.org/pull/1369.patch","issue_url":"https://api.github.com/repos/mozilla/webmaker.org/issues/1369","number":1369,"state":"open","locked":false,"title":"add mofo-style jshint","user":{"login":"ScottDowne","id":197334,"avatar_url":"https://avatars.githubusercontent.com/u/197334?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottDowne","html_url":"https://github.com/ScottDowne","followers_url":"https://api.github.com/users/ScottDowne/followers","following_url":"https://api.github.com/users/ScottDowne/following{/other_user}","gists_url":"https://api.github.com/users/ScottDowne/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottDowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottDowne/subscriptions","organizations_url":"https://api.github.com/users/ScottDowne/orgs","repos_url":"https://api.github.com/users/ScottDowne/repos","events_url":"https://api.github.com/users/ScottDowne/events{/privacy}","received_events_url":"https://api.github.com/users/ScottDowne/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-05T19:39:09Z","updated_at":"2015-03-12T02:18:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e717f94f50f7a93d0875a3d0635955a5efad17b5","assignee":{"login":"Pomax","id":177243,"avatar_url":"https://avatars.githubusercontent.com/u/177243?v=3","gravatar_id":"","url":"https://api.github.com/users/Pomax","html_url":"https://github.com/Pomax","followers_url":"https://api.github.com/users/Pomax/followers","following_url":"https://api.github.com/users/Pomax/following{/other_user}","gists_url":"https://api.github.com/users/Pomax/gists{/gist_id}","starred_url":"https://api.github.com/users/Pomax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pomax/subscriptions","organizations_url":"https://api.github.com/users/Pomax/orgs","repos_url":"https://api.github.com/users/Pomax/repos","events_url":"https://api.github.com/users/Pomax/events{/privacy}","received_events_url":"https://api.github.com/users/Pomax/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1369/commits","review_comments_url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1369/comments","review_comment_url":"https://api.github.com/repos/mozilla/webmaker.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/webmaker.org/issues/1369/comments","statuses_url":"https://api.github.com/repos/mozilla/webmaker.org/statuses/60fc6374dc1d7e369d839b9c8129cc80953acd3a","head":{"label":"ScottDowne:mofo-style","ref":"mofo-style","sha":"60fc6374dc1d7e369d839b9c8129cc80953acd3a","user":{"login":"ScottDowne","id":197334,"avatar_url":"https://avatars.githubusercontent.com/u/197334?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottDowne","html_url":"https://github.com/ScottDowne","followers_url":"https://api.github.com/users/ScottDowne/followers","following_url":"https://api.github.com/users/ScottDowne/following{/other_user}","gists_url":"https://api.github.com/users/ScottDowne/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottDowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottDowne/subscriptions","organizations_url":"https://api.github.com/users/ScottDowne/orgs","repos_url":"https://api.github.com/users/ScottDowne/repos","events_url":"https://api.github.com/users/ScottDowne/events{/privacy}","received_events_url":"https://api.github.com/users/ScottDowne/received_events","type":"User","site_admin":false},"repo":{"id":10180015,"name":"webmaker.org","full_name":"ScottDowne/webmaker.org","owner":{"login":"ScottDowne","id":197334,"avatar_url":"https://avatars.githubusercontent.com/u/197334?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottDowne","html_url":"https://github.com/ScottDowne","followers_url":"https://api.github.com/users/ScottDowne/followers","following_url":"https://api.github.com/users/ScottDowne/following{/other_user}","gists_url":"https://api.github.com/users/ScottDowne/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottDowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottDowne/subscriptions","organizations_url":"https://api.github.com/users/ScottDowne/orgs","repos_url":"https://api.github.com/users/ScottDowne/repos","events_url":"https://api.github.com/users/ScottDowne/events{/privacy}","received_events_url":"https://api.github.com/users/ScottDowne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ScottDowne/webmaker.org","description":"Currently just an empty shell - waiting for further work on splitting webmaker.org down the middle.","fork":true,"url":"https://api.github.com/repos/ScottDowne/webmaker.org","forks_url":"https://api.github.com/repos/ScottDowne/webmaker.org/forks","keys_url":"https://api.github.com/repos/ScottDowne/webmaker.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ScottDowne/webmaker.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ScottDowne/webmaker.org/teams","hooks_url":"https://api.github.com/repos/ScottDowne/webmaker.org/hooks","issue_events_url":"https://api.github.com/repos/ScottDowne/webmaker.org/issues/events{/number}","events_url":"https://api.github.com/repos/ScottDowne/webmaker.org/events","assignees_url":"https://api.github.com/repos/ScottDowne/webmaker.org/assignees{/user}","branches_url":"https://api.github.com/repos/ScottDowne/webmaker.org/branches{/branch}","tags_url":"https://api.github.com/repos/ScottDowne/webmaker.org/tags","blobs_url":"https://api.github.com/repos/ScottDowne/webmaker.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ScottDowne/webmaker.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ScottDowne/webmaker.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/ScottDowne/webmaker.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ScottDowne/webmaker.org/statuses/{sha}","languages_url":"https://api.github.com/repos/ScottDowne/webmaker.org/languages","stargazers_url":"https://api.github.com/repos/ScottDowne/webmaker.org/stargazers","contributors_url":"https://api.github.com/repos/ScottDowne/webmaker.org/contributors","subscribers_url":"https://api.github.com/repos/ScottDowne/webmaker.org/subscribers","subscription_url":"https://api.github.com/repos/ScottDowne/webmaker.org/subscription","commits_url":"https://api.github.com/repos/ScottDowne/webmaker.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/ScottDowne/webmaker.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/ScottDowne/webmaker.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/ScottDowne/webmaker.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/ScottDowne/webmaker.org/contents/{+path}","compare_url":"https://api.github.com/repos/ScottDowne/webmaker.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ScottDowne/webmaker.org/merges","archive_url":"https://api.github.com/repos/ScottDowne/webmaker.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ScottDowne/webmaker.org/downloads","issues_url":"https://api.github.com/repos/ScottDowne/webmaker.org/issues{/number}","pulls_url":"https://api.github.com/repos/ScottDowne/webmaker.org/pulls{/number}","milestones_url":"https://api.github.com/repos/ScottDowne/webmaker.org/milestones{/number}","notifications_url":"https://api.github.com/repos/ScottDowne/webmaker.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ScottDowne/webmaker.org/labels{/name}","releases_url":"https://api.github.com/repos/ScottDowne/webmaker.org/releases{/id}","created_at":"2013-05-20T19:18:43Z","updated_at":"2014-09-06T23:00:12Z","pushed_at":"2015-03-11T19:25:05Z","git_url":"git://github.com/ScottDowne/webmaker.org.git","ssh_url":"git@github.com:ScottDowne/webmaker.org.git","clone_url":"https://github.com/ScottDowne/webmaker.org.git","svn_url":"https://github.com/ScottDowne/webmaker.org","homepage":"https://webmaker.org","size":43409,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"d7306553fb4826d4a71e44cc29046f18ac5e5509","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":8780590,"name":"webmaker.org","full_name":"mozilla/webmaker.org","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/webmaker.org","description":"Webmaker is Mozilla's project to teach the web","fork":false,"url":"https://api.github.com/repos/mozilla/webmaker.org","forks_url":"https://api.github.com/repos/mozilla/webmaker.org/forks","keys_url":"https://api.github.com/repos/mozilla/webmaker.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/webmaker.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/webmaker.org/teams","hooks_url":"https://api.github.com/repos/mozilla/webmaker.org/hooks","issue_events_url":"https://api.github.com/repos/mozilla/webmaker.org/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/webmaker.org/events","assignees_url":"https://api.github.com/repos/mozilla/webmaker.org/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/webmaker.org/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/webmaker.org/tags","blobs_url":"https://api.github.com/repos/mozilla/webmaker.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/webmaker.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/webmaker.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/webmaker.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/webmaker.org/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/webmaker.org/languages","stargazers_url":"https://api.github.com/repos/mozilla/webmaker.org/stargazers","contributors_url":"https://api.github.com/repos/mozilla/webmaker.org/contributors","subscribers_url":"https://api.github.com/repos/mozilla/webmaker.org/subscribers","subscription_url":"https://api.github.com/repos/mozilla/webmaker.org/subscription","commits_url":"https://api.github.com/repos/mozilla/webmaker.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/webmaker.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/webmaker.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/webmaker.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/webmaker.org/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/webmaker.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/webmaker.org/merges","archive_url":"https://api.github.com/repos/mozilla/webmaker.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/webmaker.org/downloads","issues_url":"https://api.github.com/repos/mozilla/webmaker.org/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/webmaker.org/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/webmaker.org/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/webmaker.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/webmaker.org/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/webmaker.org/releases{/id}","created_at":"2013-03-14T17:01:22Z","updated_at":"2015-03-08T11:47:00Z","pushed_at":"2015-03-06T20:55:47Z","git_url":"git://github.com/mozilla/webmaker.org.git","ssh_url":"git@github.com:mozilla/webmaker.org.git","clone_url":"https://github.com/mozilla/webmaker.org.git","svn_url":"https://github.com/mozilla/webmaker.org","homepage":"https://webmaker.org","size":58172,"stargazers_count":47,"watchers_count":47,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":104,"mirror_url":null,"open_issues_count":79,"forks":104,"open_issues":79,"watchers":47,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1369"},"html":{"href":"https://github.com/mozilla/webmaker.org/pull/1369"},"issue":{"href":"https://api.github.com/repos/mozilla/webmaker.org/issues/1369"},"comments":{"href":"https://api.github.com/repos/mozilla/webmaker.org/issues/1369/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1369/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/webmaker.org/pulls/1369/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/webmaker.org/statuses/60fc6374dc1d7e369d839b9c8129cc80953acd3a"}}}}