{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/3381","repository_url":"https://api.github.com/repos/gogits/gogs","labels_url":"https://api.github.com/repos/gogits/gogs/issues/3381/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/3381/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/3381/events","html_url":"https://github.com/gogits/gogs/pull/3381","id":169624982,"number":3381,"title":"allow users to hide/show email address (closes #3358)","user":{"login":"bill-auger","id":1642691,"avatar_url":"https://avatars.githubusercontent.com/u/1642691?v=3","gravatar_id":"","url":"https://api.github.com/users/bill-auger","html_url":"https://github.com/bill-auger","followers_url":"https://api.github.com/users/bill-auger/followers","following_url":"https://api.github.com/users/bill-auger/following{/other_user}","gists_url":"https://api.github.com/users/bill-auger/gists{/gist_id}","starred_url":"https://api.github.com/users/bill-auger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bill-auger/subscriptions","organizations_url":"https://api.github.com/users/bill-auger/orgs","repos_url":"https://api.github.com/users/bill-auger/repos","events_url":"https://api.github.com/users/bill-auger/events{/privacy}","received_events_url":"https://api.github.com/users/bill-auger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/status/needs%20feedback","name":"status/needs feedback","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-08-05T14:52:16Z","updated_at":"2016-08-09T05:17:58Z","closed_at":"2016-08-09T05:17:58Z","pull_request":{"url":"https://api.github.com/repos/gogits/gogs/pulls/3381","html_url":"https://github.com/gogits/gogs/pull/3381","diff_url":"https://github.com/gogits/gogs/pull/3381.diff","patch_url":"https://github.com/gogits/gogs/pull/3381.patch"},"body":"per issue #3358 - this PR allows users to hide/show email address by adding a checkbox to the form on the profile settings page (also to admin edit form) and an additional boolean to the User model - this is working locally but i have not yet written any tests - i could add them to this PR or as a separate PR\r\n\r\none caveat i should mention is that i was not able to get the translation to render - please advise\r\n\r\nalso im not sure if i should have upgraded any version numbers - please advise\r\n\r\nmodifications:\r\n* add ShowEmail bool to User model\r\n* add show/hide email checkbox on user profile settings form\r\n* add show/hide email checkbox on admin edit user form\r\n* add ShowEmail to user profile settings post handler\r\n* add ShowEmail to admin edit user post handler\r\n* show/hide emails on user profile and users directory per User.ShowEmail bool\r\n* add en/US translation for 'show_email'\r\n"},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/238456031","html_url":"https://github.com/gogits/gogs/pull/3381#issuecomment-238456031","issue_url":"https://api.github.com/repos/gogits/gogs/issues/3381","id":238456031,"user":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T05:17:58Z","updated_at":"2016-08-09T05:17:58Z","body":"Sorry to hear that."}}
{"actor":{"display_login":"Unknwon"}}