{"action":"opened","number":251,"pull_request":{"url":"https://api.github.com/repos/owncloud/activity/pulls/251","id":30633750,"html_url":"https://github.com/owncloud/activity/pull/251","diff_url":"https://github.com/owncloud/activity/pull/251.diff","patch_url":"https://github.com/owncloud/activity/pull/251.patch","issue_url":"https://api.github.com/repos/owncloud/activity/issues/251","number":251,"state":"open","locked":false,"title":"Use displayname instead of username in the To: field of activity emails","user":{"login":"remixtj","id":1311873,"avatar_url":"https://avatars.githubusercontent.com/u/1311873?v=3","gravatar_id":"","url":"https://api.github.com/users/remixtj","html_url":"https://github.com/remixtj","followers_url":"https://api.github.com/users/remixtj/followers","following_url":"https://api.github.com/users/remixtj/following{/other_user}","gists_url":"https://api.github.com/users/remixtj/gists{/gist_id}","starred_url":"https://api.github.com/users/remixtj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remixtj/subscriptions","organizations_url":"https://api.github.com/users/remixtj/orgs","repos_url":"https://api.github.com/users/remixtj/repos","events_url":"https://api.github.com/users/remixtj/events{/privacy}","received_events_url":"https://api.github.com/users/remixtj/received_events","type":"User","site_admin":false},"body":"I'm using AD as backend for authentication. Activity notification emails are sent to users hourly. Users see that emails are sent to:\r\n\r\nTo: D501C74A-3BD8-437C-A0AB-D80BA42E1436 <myemail@mydomain.com>\r\n\r\nInstead of:\r\n\r\nTo: Luca Lorenzetto <myemail@mydomain.com>\r\n\r\nThis is because LDAP authentication backend uses Active Directory GIDs as owncloud usernames (even if the user inserts on the login page it's own active directory account name like \"myusername\"). LDAP backend populates the display name attribute, which is the most appropriate field for the \"To:\" email field.\r\n","created_at":"2015-03-06T10:16:49Z","updated_at":"2015-03-06T10:16:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c7f4e9e88167c3d177bbfdce688b24825880802","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/owncloud/activity/pulls/251/commits","review_comments_url":"https://api.github.com/repos/owncloud/activity/pulls/251/comments","review_comment_url":"https://api.github.com/repos/owncloud/activity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/owncloud/activity/issues/251/comments","statuses_url":"https://api.github.com/repos/owncloud/activity/statuses/52fd1481c019355bbf5641d2740e7c45f5f13f26","head":{"label":"remixtj:displayname_in_to_instead_of_username","ref":"displayname_in_to_instead_of_username","sha":"52fd1481c019355bbf5641d2740e7c45f5f13f26","user":{"login":"remixtj","id":1311873,"avatar_url":"https://avatars.githubusercontent.com/u/1311873?v=3","gravatar_id":"","url":"https://api.github.com/users/remixtj","html_url":"https://github.com/remixtj","followers_url":"https://api.github.com/users/remixtj/followers","following_url":"https://api.github.com/users/remixtj/following{/other_user}","gists_url":"https://api.github.com/users/remixtj/gists{/gist_id}","starred_url":"https://api.github.com/users/remixtj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remixtj/subscriptions","organizations_url":"https://api.github.com/users/remixtj/orgs","repos_url":"https://api.github.com/users/remixtj/repos","events_url":"https://api.github.com/users/remixtj/events{/privacy}","received_events_url":"https://api.github.com/users/remixtj/received_events","type":"User","site_admin":false},"repo":{"id":31763170,"name":"activity","full_name":"remixtj/activity","owner":{"login":"remixtj","id":1311873,"avatar_url":"https://avatars.githubusercontent.com/u/1311873?v=3","gravatar_id":"","url":"https://api.github.com/users/remixtj","html_url":"https://github.com/remixtj","followers_url":"https://api.github.com/users/remixtj/followers","following_url":"https://api.github.com/users/remixtj/following{/other_user}","gists_url":"https://api.github.com/users/remixtj/gists{/gist_id}","starred_url":"https://api.github.com/users/remixtj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remixtj/subscriptions","organizations_url":"https://api.github.com/users/remixtj/orgs","repos_url":"https://api.github.com/users/remixtj/repos","events_url":"https://api.github.com/users/remixtj/events{/privacy}","received_events_url":"https://api.github.com/users/remixtj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/remixtj/activity","description":"The activity app","fork":true,"url":"https://api.github.com/repos/remixtj/activity","forks_url":"https://api.github.com/repos/remixtj/activity/forks","keys_url":"https://api.github.com/repos/remixtj/activity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remixtj/activity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remixtj/activity/teams","hooks_url":"https://api.github.com/repos/remixtj/activity/hooks","issue_events_url":"https://api.github.com/repos/remixtj/activity/issues/events{/number}","events_url":"https://api.github.com/repos/remixtj/activity/events","assignees_url":"https://api.github.com/repos/remixtj/activity/assignees{/user}","branches_url":"https://api.github.com/repos/remixtj/activity/branches{/branch}","tags_url":"https://api.github.com/repos/remixtj/activity/tags","blobs_url":"https://api.github.com/repos/remixtj/activity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remixtj/activity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remixtj/activity/git/refs{/sha}","trees_url":"https://api.github.com/repos/remixtj/activity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remixtj/activity/statuses/{sha}","languages_url":"https://api.github.com/repos/remixtj/activity/languages","stargazers_url":"https://api.github.com/repos/remixtj/activity/stargazers","contributors_url":"https://api.github.com/repos/remixtj/activity/contributors","subscribers_url":"https://api.github.com/repos/remixtj/activity/subscribers","subscription_url":"https://api.github.com/repos/remixtj/activity/subscription","commits_url":"https://api.github.com/repos/remixtj/activity/commits{/sha}","git_commits_url":"https://api.github.com/repos/remixtj/activity/git/commits{/sha}","comments_url":"https://api.github.com/repos/remixtj/activity/comments{/number}","issue_comment_url":"https://api.github.com/repos/remixtj/activity/issues/comments{/number}","contents_url":"https://api.github.com/repos/remixtj/activity/contents/{+path}","compare_url":"https://api.github.com/repos/remixtj/activity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remixtj/activity/merges","archive_url":"https://api.github.com/repos/remixtj/activity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remixtj/activity/downloads","issues_url":"https://api.github.com/repos/remixtj/activity/issues{/number}","pulls_url":"https://api.github.com/repos/remixtj/activity/pulls{/number}","milestones_url":"https://api.github.com/repos/remixtj/activity/milestones{/number}","notifications_url":"https://api.github.com/repos/remixtj/activity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remixtj/activity/labels{/name}","releases_url":"https://api.github.com/repos/remixtj/activity/releases{/id}","created_at":"2015-03-06T09:53:10Z","updated_at":"2015-03-06T09:53:11Z","pushed_at":"2015-03-06T09:56:57Z","git_url":"git://github.com/remixtj/activity.git","ssh_url":"git@github.com:remixtj/activity.git","clone_url":"https://github.com/remixtj/activity.git","svn_url":"https://github.com/remixtj/activity","homepage":null,"size":4872,"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":"master"}},"base":{"label":"owncloud:master","ref":"master","sha":"ee850b0e0fa0e17ed01fc4b1104bb261b2aef292","user":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"repo":{"id":19402258,"name":"activity","full_name":"owncloud/activity","owner":{"login":"owncloud","id":1645051,"avatar_url":"https://avatars.githubusercontent.com/u/1645051?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud","html_url":"https://github.com/owncloud","followers_url":"https://api.github.com/users/owncloud/followers","following_url":"https://api.github.com/users/owncloud/following{/other_user}","gists_url":"https://api.github.com/users/owncloud/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud/subscriptions","organizations_url":"https://api.github.com/users/owncloud/orgs","repos_url":"https://api.github.com/users/owncloud/repos","events_url":"https://api.github.com/users/owncloud/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/owncloud/activity","description":"The activity app","fork":false,"url":"https://api.github.com/repos/owncloud/activity","forks_url":"https://api.github.com/repos/owncloud/activity/forks","keys_url":"https://api.github.com/repos/owncloud/activity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/owncloud/activity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/owncloud/activity/teams","hooks_url":"https://api.github.com/repos/owncloud/activity/hooks","issue_events_url":"https://api.github.com/repos/owncloud/activity/issues/events{/number}","events_url":"https://api.github.com/repos/owncloud/activity/events","assignees_url":"https://api.github.com/repos/owncloud/activity/assignees{/user}","branches_url":"https://api.github.com/repos/owncloud/activity/branches{/branch}","tags_url":"https://api.github.com/repos/owncloud/activity/tags","blobs_url":"https://api.github.com/repos/owncloud/activity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/owncloud/activity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/owncloud/activity/git/refs{/sha}","trees_url":"https://api.github.com/repos/owncloud/activity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/owncloud/activity/statuses/{sha}","languages_url":"https://api.github.com/repos/owncloud/activity/languages","stargazers_url":"https://api.github.com/repos/owncloud/activity/stargazers","contributors_url":"https://api.github.com/repos/owncloud/activity/contributors","subscribers_url":"https://api.github.com/repos/owncloud/activity/subscribers","subscription_url":"https://api.github.com/repos/owncloud/activity/subscription","commits_url":"https://api.github.com/repos/owncloud/activity/commits{/sha}","git_commits_url":"https://api.github.com/repos/owncloud/activity/git/commits{/sha}","comments_url":"https://api.github.com/repos/owncloud/activity/comments{/number}","issue_comment_url":"https://api.github.com/repos/owncloud/activity/issues/comments{/number}","contents_url":"https://api.github.com/repos/owncloud/activity/contents/{+path}","compare_url":"https://api.github.com/repos/owncloud/activity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/owncloud/activity/merges","archive_url":"https://api.github.com/repos/owncloud/activity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/owncloud/activity/downloads","issues_url":"https://api.github.com/repos/owncloud/activity/issues{/number}","pulls_url":"https://api.github.com/repos/owncloud/activity/pulls{/number}","milestones_url":"https://api.github.com/repos/owncloud/activity/milestones{/number}","notifications_url":"https://api.github.com/repos/owncloud/activity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/owncloud/activity/labels{/name}","releases_url":"https://api.github.com/repos/owncloud/activity/releases{/id}","created_at":"2014-05-03T12:10:20Z","updated_at":"2015-03-06T07:25:29Z","pushed_at":"2015-03-06T07:25:28Z","git_url":"git://github.com/owncloud/activity.git","ssh_url":"git@github.com:owncloud/activity.git","clone_url":"https://github.com/owncloud/activity.git","svn_url":"https://github.com/owncloud/activity","homepage":null,"size":4872,"stargazers_count":8,"watchers_count":8,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":15,"forks":12,"open_issues":15,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/owncloud/activity/pulls/251"},"html":{"href":"https://github.com/owncloud/activity/pull/251"},"issue":{"href":"https://api.github.com/repos/owncloud/activity/issues/251"},"comments":{"href":"https://api.github.com/repos/owncloud/activity/issues/251/comments"},"review_comments":{"href":"https://api.github.com/repos/owncloud/activity/pulls/251/comments"},"review_comment":{"href":"https://api.github.com/repos/owncloud/activity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/owncloud/activity/pulls/251/commits"},"statuses":{"href":"https://api.github.com/repos/owncloud/activity/statuses/52fd1481c019355bbf5641d2740e7c45f5f13f26"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}