{"action":"created","comment":{"url":"https://api.github.com/repos/DoSomething/dosomething/pulls/comments/23708853","id":23708853,"diff_hunk":"@@ -351,6 +351,20 @@ function dosomething_zendesk_verify_zendesk_user($email, $client = NULL) {\n       // Create a zendesk user.\n       return dosomething_zendesk_create_zendesk_user($email, $client);\n     }\n+    // Update user with profile fields if missing.\n+    if (!$search->results[0]->user_fields->profile_url) {","path":"lib/modules/dosomething/dosomething_zendesk/dosomething_zendesk.module","position":5,"original_position":5,"commit_id":"3bdfe335dcdb842665c42b99fae1c26ea9a4ad65","original_commit_id":"3bdfe335dcdb842665c42b99fae1c26ea9a4ad65","user":{"login":"deadlybutter","id":897368,"avatar_url":"https://avatars.githubusercontent.com/u/897368?v=3","gravatar_id":"","url":"https://api.github.com/users/deadlybutter","html_url":"https://github.com/deadlybutter","followers_url":"https://api.github.com/users/deadlybutter/followers","following_url":"https://api.github.com/users/deadlybutter/following{/other_user}","gists_url":"https://api.github.com/users/deadlybutter/gists{/gist_id}","starred_url":"https://api.github.com/users/deadlybutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadlybutter/subscriptions","organizations_url":"https://api.github.com/users/deadlybutter/orgs","repos_url":"https://api.github.com/users/deadlybutter/repos","events_url":"https://api.github.com/users/deadlybutter/events{/privacy}","received_events_url":"https://api.github.com/users/deadlybutter/received_events","type":"User","site_admin":false},"body":"Just tested it and it worked fine but it did add an error to the log \r\n\r\nNotice: Undefined property: stdClass::$profile_url in dosomething_zendesk_verify_zendesk_user() \r\n\r\nIll change it to isset and see what happens ","created_at":"2015-01-28T18:18:56Z","updated_at":"2015-01-28T18:18:56Z","html_url":"https://github.com/DoSomething/dosomething/pull/3821#discussion_r23708853","pull_request_url":"https://api.github.com/repos/DoSomething/dosomething/pulls/3821","_links":{"self":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/comments/23708853"},"html":{"href":"https://github.com/DoSomething/dosomething/pull/3821#discussion_r23708853"},"pull_request":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/3821"}}},"pull_request":{"url":"https://api.github.com/repos/DoSomething/dosomething/pulls/3821","id":28210042,"html_url":"https://github.com/DoSomething/dosomething/pull/3821","diff_url":"https://github.com/DoSomething/dosomething/pull/3821.diff","patch_url":"https://github.com/DoSomething/dosomething/pull/3821.patch","issue_url":"https://api.github.com/repos/DoSomething/dosomething/issues/3821","number":3821,"state":"open","locked":false,"title":"Adds profile link and UID to Zendesk users","user":{"login":"deadlybutter","id":897368,"avatar_url":"https://avatars.githubusercontent.com/u/897368?v=3","gravatar_id":"","url":"https://api.github.com/users/deadlybutter","html_url":"https://github.com/deadlybutter","followers_url":"https://api.github.com/users/deadlybutter/followers","following_url":"https://api.github.com/users/deadlybutter/following{/other_user}","gists_url":"https://api.github.com/users/deadlybutter/gists{/gist_id}","starred_url":"https://api.github.com/users/deadlybutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadlybutter/subscriptions","organizations_url":"https://api.github.com/users/deadlybutter/orgs","repos_url":"https://api.github.com/users/deadlybutter/repos","events_url":"https://api.github.com/users/deadlybutter/events{/privacy}","received_events_url":"https://api.github.com/users/deadlybutter/received_events","type":"User","site_admin":false},"body":"Fixes #3565\r\n\r\n@aaronschachter ","created_at":"2015-01-28T17:00:23Z","updated_at":"2015-01-28T18:18:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebb5dab308f047f0fcf0cd00f1a67e7ea82336cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/dosomething/pulls/3821/commits","review_comments_url":"https://api.github.com/repos/DoSomething/dosomething/pulls/3821/comments","review_comment_url":"https://api.github.com/repos/DoSomething/dosomething/pulls/comments/{number}","comments_url":"https://api.github.com/repos/DoSomething/dosomething/issues/3821/comments","statuses_url":"https://api.github.com/repos/DoSomething/dosomething/statuses/3bdfe335dcdb842665c42b99fae1c26ea9a4ad65","head":{"label":"deadlybutter:zendesklink","ref":"zendesklink","sha":"3bdfe335dcdb842665c42b99fae1c26ea9a4ad65","user":{"login":"deadlybutter","id":897368,"avatar_url":"https://avatars.githubusercontent.com/u/897368?v=3","gravatar_id":"","url":"https://api.github.com/users/deadlybutter","html_url":"https://github.com/deadlybutter","followers_url":"https://api.github.com/users/deadlybutter/followers","following_url":"https://api.github.com/users/deadlybutter/following{/other_user}","gists_url":"https://api.github.com/users/deadlybutter/gists{/gist_id}","starred_url":"https://api.github.com/users/deadlybutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadlybutter/subscriptions","organizations_url":"https://api.github.com/users/deadlybutter/orgs","repos_url":"https://api.github.com/users/deadlybutter/repos","events_url":"https://api.github.com/users/deadlybutter/events{/privacy}","received_events_url":"https://api.github.com/users/deadlybutter/received_events","type":"User","site_admin":false},"repo":{"id":26186134,"name":"dosomething","full_name":"deadlybutter/dosomething","owner":{"login":"deadlybutter","id":897368,"avatar_url":"https://avatars.githubusercontent.com/u/897368?v=3","gravatar_id":"","url":"https://api.github.com/users/deadlybutter","html_url":"https://github.com/deadlybutter","followers_url":"https://api.github.com/users/deadlybutter/followers","following_url":"https://api.github.com/users/deadlybutter/following{/other_user}","gists_url":"https://api.github.com/users/deadlybutter/gists{/gist_id}","starred_url":"https://api.github.com/users/deadlybutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadlybutter/subscriptions","organizations_url":"https://api.github.com/users/deadlybutter/orgs","repos_url":"https://api.github.com/users/deadlybutter/repos","events_url":"https://api.github.com/users/deadlybutter/events{/privacy}","received_events_url":"https://api.github.com/users/deadlybutter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deadlybutter/dosomething","description":"A Drupal 7 distribution that powers the DoSomething.org web platform.","fork":true,"url":"https://api.github.com/repos/deadlybutter/dosomething","forks_url":"https://api.github.com/repos/deadlybutter/dosomething/forks","keys_url":"https://api.github.com/repos/deadlybutter/dosomething/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deadlybutter/dosomething/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deadlybutter/dosomething/teams","hooks_url":"https://api.github.com/repos/deadlybutter/dosomething/hooks","issue_events_url":"https://api.github.com/repos/deadlybutter/dosomething/issues/events{/number}","events_url":"https://api.github.com/repos/deadlybutter/dosomething/events","assignees_url":"https://api.github.com/repos/deadlybutter/dosomething/assignees{/user}","branches_url":"https://api.github.com/repos/deadlybutter/dosomething/branches{/branch}","tags_url":"https://api.github.com/repos/deadlybutter/dosomething/tags","blobs_url":"https://api.github.com/repos/deadlybutter/dosomething/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deadlybutter/dosomething/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deadlybutter/dosomething/git/refs{/sha}","trees_url":"https://api.github.com/repos/deadlybutter/dosomething/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deadlybutter/dosomething/statuses/{sha}","languages_url":"https://api.github.com/repos/deadlybutter/dosomething/languages","stargazers_url":"https://api.github.com/repos/deadlybutter/dosomething/stargazers","contributors_url":"https://api.github.com/repos/deadlybutter/dosomething/contributors","subscribers_url":"https://api.github.com/repos/deadlybutter/dosomething/subscribers","subscription_url":"https://api.github.com/repos/deadlybutter/dosomething/subscription","commits_url":"https://api.github.com/repos/deadlybutter/dosomething/commits{/sha}","git_commits_url":"https://api.github.com/repos/deadlybutter/dosomething/git/commits{/sha}","comments_url":"https://api.github.com/repos/deadlybutter/dosomething/comments{/number}","issue_comment_url":"https://api.github.com/repos/deadlybutter/dosomething/issues/comments/{number}","contents_url":"https://api.github.com/repos/deadlybutter/dosomething/contents/{+path}","compare_url":"https://api.github.com/repos/deadlybutter/dosomething/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deadlybutter/dosomething/merges","archive_url":"https://api.github.com/repos/deadlybutter/dosomething/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deadlybutter/dosomething/downloads","issues_url":"https://api.github.com/repos/deadlybutter/dosomething/issues{/number}","pulls_url":"https://api.github.com/repos/deadlybutter/dosomething/pulls{/number}","milestones_url":"https://api.github.com/repos/deadlybutter/dosomething/milestones{/number}","notifications_url":"https://api.github.com/repos/deadlybutter/dosomething/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deadlybutter/dosomething/labels{/name}","releases_url":"https://api.github.com/repos/deadlybutter/dosomething/releases{/id}","created_at":"2014-11-04T19:57:31Z","updated_at":"2015-01-26T17:08:14Z","pushed_at":"2015-01-28T18:13:08Z","git_url":"git://github.com/deadlybutter/dosomething.git","ssh_url":"git@github.com:deadlybutter/dosomething.git","clone_url":"https://github.com/deadlybutter/dosomething.git","svn_url":"https://github.com/deadlybutter/dosomething","homepage":"http://www.dosomething.org/","size":11294,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":0,"default_branch":"dev"}},"base":{"label":"DoSomething:dev","ref":"dev","sha":"70c07f09546cd4fa230472fa78abecb237a8db79","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":13592927,"name":"dosomething","full_name":"DoSomething/dosomething","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/dosomething","description":"A Drupal 7 distribution that powers the DoSomething.org web platform.","fork":false,"url":"https://api.github.com/repos/DoSomething/dosomething","forks_url":"https://api.github.com/repos/DoSomething/dosomething/forks","keys_url":"https://api.github.com/repos/DoSomething/dosomething/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/dosomething/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/dosomething/teams","hooks_url":"https://api.github.com/repos/DoSomething/dosomething/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/dosomething/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/dosomething/events","assignees_url":"https://api.github.com/repos/DoSomething/dosomething/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/dosomething/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/dosomething/tags","blobs_url":"https://api.github.com/repos/DoSomething/dosomething/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/dosomething/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/dosomething/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/dosomething/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/dosomething/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/dosomething/languages","stargazers_url":"https://api.github.com/repos/DoSomething/dosomething/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/dosomething/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/dosomething/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/dosomething/subscription","commits_url":"https://api.github.com/repos/DoSomething/dosomething/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/dosomething/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/dosomething/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/dosomething/issues/comments/{number}","contents_url":"https://api.github.com/repos/DoSomething/dosomething/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/dosomething/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/dosomething/merges","archive_url":"https://api.github.com/repos/DoSomething/dosomething/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/dosomething/downloads","issues_url":"https://api.github.com/repos/DoSomething/dosomething/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/dosomething/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/dosomething/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/dosomething/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/dosomething/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/dosomething/releases{/id}","created_at":"2013-10-15T14:50:48Z","updated_at":"2015-01-28T18:12:23Z","pushed_at":"2015-01-28T18:12:23Z","git_url":"git://github.com/DoSomething/dosomething.git","ssh_url":"git@github.com:DoSomething/dosomething.git","clone_url":"https://github.com/DoSomething/dosomething.git","svn_url":"https://github.com/DoSomething/dosomething","homepage":"http://www.dosomething.org/","size":21580,"stargazers_count":20,"watchers_count":20,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":216,"forks":13,"open_issues":216,"watchers":20,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/3821"},"html":{"href":"https://github.com/DoSomething/dosomething/pull/3821"},"issue":{"href":"https://api.github.com/repos/DoSomething/dosomething/issues/3821"},"comments":{"href":"https://api.github.com/repos/DoSomething/dosomething/issues/3821/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/3821/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/dosomething/pulls/3821/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/dosomething/statuses/3bdfe335dcdb842665c42b99fae1c26ea9a4ad65"}}}}