{"action":"created","comment":{"url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/comments/242968555","pull_request_review_id":186612860,"id":242968555,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0Mjk2ODU1NQ==","diff_hunk":"@@ -72,7 +72,13 @@ define(['jquery-1.9', 'cookieStore'], function($, DataStore) {\n         },\n         generateCode : function (embedProvider, externalUrl) {\n             var dataStore = new DataStore();\n-            var policy = dataStore.readPolicy('personalisation'); //functional cookie\n+            try {\n+                var policy = dataStore.readPolicy('personalisation'); //functional cookie\n+            } catch (err) {\n+                if (!embedProvider.templateRegex) {\n+                    return this.generateCodeFromRequest(embedProvider, externalUrl);\n+                }","path":"assets/js/third-party.js","position":10,"original_position":10,"commit_id":"8c84384b1c332f08119955d74fe856e56e22406b","original_commit_id":"8c84384b1c332f08119955d74fe856e56e22406b","user":{"login":"Bobkidbob","id":2664148,"node_id":"MDQ6VXNlcjI2NjQxNDg=","avatar_url":"https://avatars2.githubusercontent.com/u/2664148?v=4","gravatar_id":"","url":"https://api.github.com/users/Bobkidbob","html_url":"https://github.com/Bobkidbob","followers_url":"https://api.github.com/users/Bobkidbob/followers","following_url":"https://api.github.com/users/Bobkidbob/following{/other_user}","gists_url":"https://api.github.com/users/Bobkidbob/gists{/gist_id}","starred_url":"https://api.github.com/users/Bobkidbob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bobkidbob/subscriptions","organizations_url":"https://api.github.com/users/Bobkidbob/orgs","repos_url":"https://api.github.com/users/Bobkidbob/repos","events_url":"https://api.github.com/users/Bobkidbob/events{/privacy}","received_events_url":"https://api.github.com/users/Bobkidbob/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n\r\n```","created_at":"2018-12-19T15:51:56Z","updated_at":"2018-12-19T15:54:09Z","html_url":"https://github.com/bbc/programmes-frontend/pull/899#discussion_r242968555","pull_request_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/899","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/comments/242968555"},"html":{"href":"https://github.com/bbc/programmes-frontend/pull/899#discussion_r242968555"},"pull_request":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/899"}}},"pull_request":{"url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/899","id":239784819,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5Nzg0ODE5","html_url":"https://github.com/bbc/programmes-frontend/pull/899","diff_url":"https://github.com/bbc/programmes-frontend/pull/899.diff","patch_url":"https://github.com/bbc/programmes-frontend/pull/899.patch","issue_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/899","number":899,"state":"closed","locked":false,"title":"[PROGRAMMES-6810] Fixing soundcloud and vimeo in incognito","user":{"login":"cisco87","id":169945,"node_id":"MDQ6VXNlcjE2OTk0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/169945?v=4","gravatar_id":"","url":"https://api.github.com/users/cisco87","html_url":"https://github.com/cisco87","followers_url":"https://api.github.com/users/cisco87/followers","following_url":"https://api.github.com/users/cisco87/following{/other_user}","gists_url":"https://api.github.com/users/cisco87/gists{/gist_id}","starred_url":"https://api.github.com/users/cisco87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cisco87/subscriptions","organizations_url":"https://api.github.com/users/cisco87/orgs","repos_url":"https://api.github.com/users/cisco87/repos","events_url":"https://api.github.com/users/cisco87/events{/privacy}","received_events_url":"https://api.github.com/users/cisco87/received_events","type":"User","site_admin":false},"body":"https://sandbox.bbc.co.uk/programmes/profiles/2D40k6x3BRV3ZRxStFVrM62/test-profile","created_at":"2018-12-19T10:30:16Z","updated_at":"2018-12-19T15:54:09Z","closed_at":"2018-12-19T15:49:47Z","merged_at":null,"merge_commit_sha":"209f6c7f9d6aa03773799ccae87dc741e572f13d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/899/commits","review_comments_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/899/comments","review_comment_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/899/comments","statuses_url":"https://api.github.com/repos/bbc/programmes-frontend/statuses/8c84384b1c332f08119955d74fe856e56e22406b","head":{"label":"bbc:PROGRAMMES-6810-social-embed-incognito","ref":"PROGRAMMES-6810-social-embed-incognito","sha":"8c84384b1c332f08119955d74fe856e56e22406b","user":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":85298889,"node_id":"MDEwOlJlcG9zaXRvcnk4NTI5ODg4OQ==","name":"programmes-frontend","full_name":"bbc/programmes-frontend","private":false,"owner":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bbc/programmes-frontend","description":"The new frontend for bbc.co.uk/programmes","fork":false,"url":"https://api.github.com/repos/bbc/programmes-frontend","forks_url":"https://api.github.com/repos/bbc/programmes-frontend/forks","keys_url":"https://api.github.com/repos/bbc/programmes-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/programmes-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/programmes-frontend/teams","hooks_url":"https://api.github.com/repos/bbc/programmes-frontend/hooks","issue_events_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/programmes-frontend/events","assignees_url":"https://api.github.com/repos/bbc/programmes-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/programmes-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/programmes-frontend/tags","blobs_url":"https://api.github.com/repos/bbc/programmes-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/programmes-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/programmes-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/programmes-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/programmes-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/programmes-frontend/languages","stargazers_url":"https://api.github.com/repos/bbc/programmes-frontend/stargazers","contributors_url":"https://api.github.com/repos/bbc/programmes-frontend/contributors","subscribers_url":"https://api.github.com/repos/bbc/programmes-frontend/subscribers","subscription_url":"https://api.github.com/repos/bbc/programmes-frontend/subscription","commits_url":"https://api.github.com/repos/bbc/programmes-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/programmes-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/programmes-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/programmes-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/programmes-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/programmes-frontend/merges","archive_url":"https://api.github.com/repos/bbc/programmes-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/programmes-frontend/downloads","issues_url":"https://api.github.com/repos/bbc/programmes-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/programmes-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/programmes-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/programmes-frontend/labels{/name}","releases_url":"https://api.github.com/repos/bbc/programmes-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/bbc/programmes-frontend/deployments","created_at":"2017-03-17T10:19:20Z","updated_at":"2018-12-19T15:04:45Z","pushed_at":"2018-12-19T15:41:32Z","git_url":"git://github.com/bbc/programmes-frontend.git","ssh_url":"git@github.com:bbc/programmes-frontend.git","clone_url":"https://github.com/bbc/programmes-frontend.git","svn_url":"https://github.com/bbc/programmes-frontend","homepage":"","size":4491,"stargazers_count":21,"watchers_count":21,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":6,"open_issues":8,"watchers":21,"default_branch":"develop"}},"base":{"label":"bbc:develop","ref":"develop","sha":"dec90e51192a799a175456126ad5ae97d321759f","user":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":85298889,"node_id":"MDEwOlJlcG9zaXRvcnk4NTI5ODg4OQ==","name":"programmes-frontend","full_name":"bbc/programmes-frontend","private":false,"owner":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bbc/programmes-frontend","description":"The new frontend for bbc.co.uk/programmes","fork":false,"url":"https://api.github.com/repos/bbc/programmes-frontend","forks_url":"https://api.github.com/repos/bbc/programmes-frontend/forks","keys_url":"https://api.github.com/repos/bbc/programmes-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/programmes-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/programmes-frontend/teams","hooks_url":"https://api.github.com/repos/bbc/programmes-frontend/hooks","issue_events_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/programmes-frontend/events","assignees_url":"https://api.github.com/repos/bbc/programmes-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/programmes-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/programmes-frontend/tags","blobs_url":"https://api.github.com/repos/bbc/programmes-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/programmes-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/programmes-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/programmes-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/programmes-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/programmes-frontend/languages","stargazers_url":"https://api.github.com/repos/bbc/programmes-frontend/stargazers","contributors_url":"https://api.github.com/repos/bbc/programmes-frontend/contributors","subscribers_url":"https://api.github.com/repos/bbc/programmes-frontend/subscribers","subscription_url":"https://api.github.com/repos/bbc/programmes-frontend/subscription","commits_url":"https://api.github.com/repos/bbc/programmes-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/programmes-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/programmes-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/programmes-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/programmes-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/programmes-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/programmes-frontend/merges","archive_url":"https://api.github.com/repos/bbc/programmes-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/programmes-frontend/downloads","issues_url":"https://api.github.com/repos/bbc/programmes-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/programmes-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/programmes-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/programmes-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/programmes-frontend/labels{/name}","releases_url":"https://api.github.com/repos/bbc/programmes-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/bbc/programmes-frontend/deployments","created_at":"2017-03-17T10:19:20Z","updated_at":"2018-12-19T15:04:45Z","pushed_at":"2018-12-19T15:41:32Z","git_url":"git://github.com/bbc/programmes-frontend.git","ssh_url":"git@github.com:bbc/programmes-frontend.git","clone_url":"https://github.com/bbc/programmes-frontend.git","svn_url":"https://github.com/bbc/programmes-frontend","homepage":"","size":4491,"stargazers_count":21,"watchers_count":21,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":6,"open_issues":8,"watchers":21,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/899"},"html":{"href":"https://github.com/bbc/programmes-frontend/pull/899"},"issue":{"href":"https://api.github.com/repos/bbc/programmes-frontend/issues/899"},"comments":{"href":"https://api.github.com/repos/bbc/programmes-frontend/issues/899/comments"},"review_comments":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/899/comments"},"review_comment":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbc/programmes-frontend/pulls/899/commits"},"statuses":{"href":"https://api.github.com/repos/bbc/programmes-frontend/statuses/8c84384b1c332f08119955d74fe856e56e22406b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Bobkidbob"}}