{"action":"created","comment":{"url":"https://api.github.com/repos/ding2/ding_staff/pulls/comments/28994118","id":28994118,"diff_hunk":"@@ -144,3 +144,15 @@ function ding_staff_og_context_handler() {\n     'node' => $nids,\n   );\n }\n+\n+/**\n+ * Implements hook_preprocess_username().\n+ */\n+function ding_staff_preprocess_username(&$vars) {\n+  // Drupal truncates usernames over 20 chars to 15 chars + ... by default but\n+  // keeps the original name in a separate variable.\n+  // Using realname module ensures that many usernames are over 20 chars long\n+  // and there is no reason to truncate then so reinstitute a safe version of\n+  // the original username.","path":"ding_staff.module","position":13,"original_position":13,"commit_id":"87119c779b149825532bf192339a8961fb1e215e","original_commit_id":"87119c779b149825532bf192339a8961fb1e215e","user":{"login":"cableman","id":111397,"avatar_url":"https://avatars.githubusercontent.com/u/111397?v=3","gravatar_id":"","url":"https://api.github.com/users/cableman","html_url":"https://github.com/cableman","followers_url":"https://api.github.com/users/cableman/followers","following_url":"https://api.github.com/users/cableman/following{/other_user}","gists_url":"https://api.github.com/users/cableman/gists{/gist_id}","starred_url":"https://api.github.com/users/cableman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cableman/subscriptions","organizations_url":"https://api.github.com/users/cableman/orgs","repos_url":"https://api.github.com/users/cableman/repos","events_url":"https://api.github.com/users/cableman/events{/privacy}","received_events_url":"https://api.github.com/users/cableman/received_events","type":"User","site_admin":false},"body":"Great with this comment :+1: ","created_at":"2015-04-23T19:17:11Z","updated_at":"2015-04-23T19:17:11Z","html_url":"https://github.com/ding2/ding_staff/pull/5#discussion_r28994118","pull_request_url":"https://api.github.com/repos/ding2/ding_staff/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/ding2/ding_staff/pulls/comments/28994118"},"html":{"href":"https://github.com/ding2/ding_staff/pull/5#discussion_r28994118"},"pull_request":{"href":"https://api.github.com/repos/ding2/ding_staff/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/ding2/ding_staff/pulls/5","id":31312377,"html_url":"https://github.com/ding2/ding_staff/pull/5","diff_url":"https://github.com/ding2/ding_staff/pull/5.diff","patch_url":"https://github.com/ding2/ding_staff/pull/5.patch","issue_url":"https://api.github.com/repos/ding2/ding_staff/issues/5","number":5,"state":"open","locked":false,"title":"Issue 678: Show profile name instead of user name","user":{"login":"kasperg","id":73966,"avatar_url":"https://avatars.githubusercontent.com/u/73966?v=3","gravatar_id":"","url":"https://api.github.com/users/kasperg","html_url":"https://github.com/kasperg","followers_url":"https://api.github.com/users/kasperg/followers","following_url":"https://api.github.com/users/kasperg/following{/other_user}","gists_url":"https://api.github.com/users/kasperg/gists{/gist_id}","starred_url":"https://api.github.com/users/kasperg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasperg/subscriptions","organizations_url":"https://api.github.com/users/kasperg/orgs","repos_url":"https://api.github.com/users/kasperg/repos","events_url":"https://api.github.com/users/kasperg/events{/privacy}","received_events_url":"https://api.github.com/users/kasperg/received_events","type":"User","site_admin":false},"body":"- Add realname module to make file\r\n- Enable realname on update\r\n- Add configuration to use “[forename] [surname]” as real name\r\n- Disable Drupal truncating usernames\r\n\r\nThis will automagically show the profile name as the user name in lists and on node views.\r\n\r\nIssue: http://platform.dandigbib.org/issues/678.","created_at":"2015-03-17T07:22:57Z","updated_at":"2015-04-23T19:17:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d850a3ba965afcbf4828928c4a26fe4579d0c812","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ding2/ding_staff/pulls/5/commits","review_comments_url":"https://api.github.com/repos/ding2/ding_staff/pulls/5/comments","review_comment_url":"https://api.github.com/repos/ding2/ding_staff/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ding2/ding_staff/issues/5/comments","statuses_url":"https://api.github.com/repos/ding2/ding_staff/statuses/87119c779b149825532bf192339a8961fb1e215e","head":{"label":"kdb:678-show-profile-name","ref":"678-show-profile-name","sha":"87119c779b149825532bf192339a8961fb1e215e","user":{"login":"kdb","id":66006,"avatar_url":"https://avatars.githubusercontent.com/u/66006?v=3","gravatar_id":"","url":"https://api.github.com/users/kdb","html_url":"https://github.com/kdb","followers_url":"https://api.github.com/users/kdb/followers","following_url":"https://api.github.com/users/kdb/following{/other_user}","gists_url":"https://api.github.com/users/kdb/gists{/gist_id}","starred_url":"https://api.github.com/users/kdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdb/subscriptions","organizations_url":"https://api.github.com/users/kdb/orgs","repos_url":"https://api.github.com/users/kdb/repos","events_url":"https://api.github.com/users/kdb/events{/privacy}","received_events_url":"https://api.github.com/users/kdb/received_events","type":"Organization","site_admin":false},"repo":{"id":31420932,"name":"ding_staff","full_name":"kdb/ding_staff","owner":{"login":"kdb","id":66006,"avatar_url":"https://avatars.githubusercontent.com/u/66006?v=3","gravatar_id":"","url":"https://api.github.com/users/kdb","html_url":"https://github.com/kdb","followers_url":"https://api.github.com/users/kdb/followers","following_url":"https://api.github.com/users/kdb/following{/other_user}","gists_url":"https://api.github.com/users/kdb/gists{/gist_id}","starred_url":"https://api.github.com/users/kdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdb/subscriptions","organizations_url":"https://api.github.com/users/kdb/orgs","repos_url":"https://api.github.com/users/kdb/repos","events_url":"https://api.github.com/users/kdb/events{/privacy}","received_events_url":"https://api.github.com/users/kdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kdb/ding_staff","description":"","fork":true,"url":"https://api.github.com/repos/kdb/ding_staff","forks_url":"https://api.github.com/repos/kdb/ding_staff/forks","keys_url":"https://api.github.com/repos/kdb/ding_staff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kdb/ding_staff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kdb/ding_staff/teams","hooks_url":"https://api.github.com/repos/kdb/ding_staff/hooks","issue_events_url":"https://api.github.com/repos/kdb/ding_staff/issues/events{/number}","events_url":"https://api.github.com/repos/kdb/ding_staff/events","assignees_url":"https://api.github.com/repos/kdb/ding_staff/assignees{/user}","branches_url":"https://api.github.com/repos/kdb/ding_staff/branches{/branch}","tags_url":"https://api.github.com/repos/kdb/ding_staff/tags","blobs_url":"https://api.github.com/repos/kdb/ding_staff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kdb/ding_staff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kdb/ding_staff/git/refs{/sha}","trees_url":"https://api.github.com/repos/kdb/ding_staff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kdb/ding_staff/statuses/{sha}","languages_url":"https://api.github.com/repos/kdb/ding_staff/languages","stargazers_url":"https://api.github.com/repos/kdb/ding_staff/stargazers","contributors_url":"https://api.github.com/repos/kdb/ding_staff/contributors","subscribers_url":"https://api.github.com/repos/kdb/ding_staff/subscribers","subscription_url":"https://api.github.com/repos/kdb/ding_staff/subscription","commits_url":"https://api.github.com/repos/kdb/ding_staff/commits{/sha}","git_commits_url":"https://api.github.com/repos/kdb/ding_staff/git/commits{/sha}","comments_url":"https://api.github.com/repos/kdb/ding_staff/comments{/number}","issue_comment_url":"https://api.github.com/repos/kdb/ding_staff/issues/comments{/number}","contents_url":"https://api.github.com/repos/kdb/ding_staff/contents/{+path}","compare_url":"https://api.github.com/repos/kdb/ding_staff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kdb/ding_staff/merges","archive_url":"https://api.github.com/repos/kdb/ding_staff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kdb/ding_staff/downloads","issues_url":"https://api.github.com/repos/kdb/ding_staff/issues{/number}","pulls_url":"https://api.github.com/repos/kdb/ding_staff/pulls{/number}","milestones_url":"https://api.github.com/repos/kdb/ding_staff/milestones{/number}","notifications_url":"https://api.github.com/repos/kdb/ding_staff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kdb/ding_staff/labels{/name}","releases_url":"https://api.github.com/repos/kdb/ding_staff/releases{/id}","created_at":"2015-02-27T13:43:30Z","updated_at":"2015-01-20T14:50:09Z","pushed_at":"2015-03-25T12:07:02Z","git_url":"git://github.com/kdb/ding_staff.git","ssh_url":"git@github.com:kdb/ding_staff.git","clone_url":"https://github.com/kdb/ding_staff.git","svn_url":"https://github.com/kdb/ding_staff","homepage":null,"size":24109,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ding2:master","ref":"master","sha":"062a545dc84b0776cf565896350c9c767e6f788b","user":{"login":"ding2","id":564698,"avatar_url":"https://avatars.githubusercontent.com/u/564698?v=3","gravatar_id":"","url":"https://api.github.com/users/ding2","html_url":"https://github.com/ding2","followers_url":"https://api.github.com/users/ding2/followers","following_url":"https://api.github.com/users/ding2/following{/other_user}","gists_url":"https://api.github.com/users/ding2/gists{/gist_id}","starred_url":"https://api.github.com/users/ding2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ding2/subscriptions","organizations_url":"https://api.github.com/users/ding2/orgs","repos_url":"https://api.github.com/users/ding2/repos","events_url":"https://api.github.com/users/ding2/events{/privacy}","received_events_url":"https://api.github.com/users/ding2/received_events","type":"Organization","site_admin":false},"repo":{"id":29525862,"name":"ding_staff","full_name":"ding2/ding_staff","owner":{"login":"ding2","id":564698,"avatar_url":"https://avatars.githubusercontent.com/u/564698?v=3","gravatar_id":"","url":"https://api.github.com/users/ding2","html_url":"https://github.com/ding2","followers_url":"https://api.github.com/users/ding2/followers","following_url":"https://api.github.com/users/ding2/following{/other_user}","gists_url":"https://api.github.com/users/ding2/gists{/gist_id}","starred_url":"https://api.github.com/users/ding2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ding2/subscriptions","organizations_url":"https://api.github.com/users/ding2/orgs","repos_url":"https://api.github.com/users/ding2/repos","events_url":"https://api.github.com/users/ding2/events{/privacy}","received_events_url":"https://api.github.com/users/ding2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ding2/ding_staff","description":"","fork":true,"url":"https://api.github.com/repos/ding2/ding_staff","forks_url":"https://api.github.com/repos/ding2/ding_staff/forks","keys_url":"https://api.github.com/repos/ding2/ding_staff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ding2/ding_staff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ding2/ding_staff/teams","hooks_url":"https://api.github.com/repos/ding2/ding_staff/hooks","issue_events_url":"https://api.github.com/repos/ding2/ding_staff/issues/events{/number}","events_url":"https://api.github.com/repos/ding2/ding_staff/events","assignees_url":"https://api.github.com/repos/ding2/ding_staff/assignees{/user}","branches_url":"https://api.github.com/repos/ding2/ding_staff/branches{/branch}","tags_url":"https://api.github.com/repos/ding2/ding_staff/tags","blobs_url":"https://api.github.com/repos/ding2/ding_staff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ding2/ding_staff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ding2/ding_staff/git/refs{/sha}","trees_url":"https://api.github.com/repos/ding2/ding_staff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ding2/ding_staff/statuses/{sha}","languages_url":"https://api.github.com/repos/ding2/ding_staff/languages","stargazers_url":"https://api.github.com/repos/ding2/ding_staff/stargazers","contributors_url":"https://api.github.com/repos/ding2/ding_staff/contributors","subscribers_url":"https://api.github.com/repos/ding2/ding_staff/subscribers","subscription_url":"https://api.github.com/repos/ding2/ding_staff/subscription","commits_url":"https://api.github.com/repos/ding2/ding_staff/commits{/sha}","git_commits_url":"https://api.github.com/repos/ding2/ding_staff/git/commits{/sha}","comments_url":"https://api.github.com/repos/ding2/ding_staff/comments{/number}","issue_comment_url":"https://api.github.com/repos/ding2/ding_staff/issues/comments{/number}","contents_url":"https://api.github.com/repos/ding2/ding_staff/contents/{+path}","compare_url":"https://api.github.com/repos/ding2/ding_staff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ding2/ding_staff/merges","archive_url":"https://api.github.com/repos/ding2/ding_staff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ding2/ding_staff/downloads","issues_url":"https://api.github.com/repos/ding2/ding_staff/issues{/number}","pulls_url":"https://api.github.com/repos/ding2/ding_staff/pulls{/number}","milestones_url":"https://api.github.com/repos/ding2/ding_staff/milestones{/number}","notifications_url":"https://api.github.com/repos/ding2/ding_staff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ding2/ding_staff/labels{/name}","releases_url":"https://api.github.com/repos/ding2/ding_staff/releases{/id}","created_at":"2015-01-20T11:08:41Z","updated_at":"2015-01-20T14:50:09Z","pushed_at":"2015-04-21T20:01:31Z","git_url":"git://github.com/ding2/ding_staff.git","ssh_url":"git@github.com:ding2/ding_staff.git","clone_url":"https://github.com/ding2/ding_staff.git","svn_url":"https://github.com/ding2/ding_staff","homepage":null,"size":24169,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ding2/ding_staff/pulls/5"},"html":{"href":"https://github.com/ding2/ding_staff/pull/5"},"issue":{"href":"https://api.github.com/repos/ding2/ding_staff/issues/5"},"comments":{"href":"https://api.github.com/repos/ding2/ding_staff/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/ding2/ding_staff/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/ding2/ding_staff/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ding2/ding_staff/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/ding2/ding_staff/statuses/87119c779b149825532bf192339a8961fb1e215e"}}}}