{"action":"created","comment":{"url":"https://api.github.com/repos/gogits/gogs/pulls/comments/68547580","id":68547580,"diff_hunk":"@@ -460,6 +463,17 @@ func NewContext() {\n \tif OfflineMode {\n \t\tDisableGravatar = true\n \t}\n+\tif ( ! DisableGravatar ) {\n+\t\tLibravatarService = libravatar.New()\n+\t\t// TODO: initialize libravatar just once, at configuration time","path":"modules/setting/setting.go","position":23,"original_position":23,"commit_id":"384f1dda9052131145efdcc3ef126a4513f9e169","original_commit_id":"384f1dda9052131145efdcc3ef126a4513f9e169","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},"body":"What does this `TODO` suppose to do?","created_at":"2016-06-27T09:34:44Z","updated_at":"2016-06-27T09:34:44Z","html_url":"https://github.com/gogits/gogs/pull/3115#discussion_r68547580","pull_request_url":"https://api.github.com/repos/gogits/gogs/pulls/3115","_links":{"self":{"href":"https://api.github.com/repos/gogits/gogs/pulls/comments/68547580"},"html":{"href":"https://github.com/gogits/gogs/pull/3115#discussion_r68547580"},"pull_request":{"href":"https://api.github.com/repos/gogits/gogs/pulls/3115"}}},"pull_request":{"url":"https://api.github.com/repos/gogits/gogs/pulls/3115","id":70960645,"html_url":"https://github.com/gogits/gogs/pull/3115","diff_url":"https://github.com/gogits/gogs/pull/3115.diff","patch_url":"https://github.com/gogits/gogs/pull/3115.patch","issue_url":"https://api.github.com/repos/gogits/gogs/issues/3115","number":3115,"state":"open","locked":false,"title":"Add support for federated avatars","user":{"login":"strk","id":289678,"avatar_url":"https://avatars.githubusercontent.com/u/289678?v=3","gravatar_id":"","url":"https://api.github.com/users/strk","html_url":"https://github.com/strk","followers_url":"https://api.github.com/users/strk/followers","following_url":"https://api.github.com/users/strk/following{/other_user}","gists_url":"https://api.github.com/users/strk/gists{/gist_id}","starred_url":"https://api.github.com/users/strk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strk/subscriptions","organizations_url":"https://api.github.com/users/strk/orgs","repos_url":"https://api.github.com/users/strk/repos","events_url":"https://api.github.com/users/strk/events{/privacy}","received_events_url":"https://api.github.com/users/strk/received_events","type":"User","site_admin":false},"body":"Fixes #3105\r\n\r\nThe code would be better cleaned up by someone else.\r\nThere's a duplication (which was already in the code before my intervention) between modules/base/tools.go and modules/user.go\r\n\r\nThe libravatar module is my first module. Not so big so it could eventually be included, if needed.","created_at":"2016-05-21T21:17:17Z","updated_at":"2016-06-27T09:34:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6383e5df082bb974d7f994278f0584121ecff74","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gogits/gogs/pulls/3115/commits","review_comments_url":"https://api.github.com/repos/gogits/gogs/pulls/3115/comments","review_comment_url":"https://api.github.com/repos/gogits/gogs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/3115/comments","statuses_url":"https://api.github.com/repos/gogits/gogs/statuses/384f1dda9052131145efdcc3ef126a4513f9e169","head":{"label":"strk:libravatar","ref":"libravatar","sha":"384f1dda9052131145efdcc3ef126a4513f9e169","user":{"login":"strk","id":289678,"avatar_url":"https://avatars.githubusercontent.com/u/289678?v=3","gravatar_id":"","url":"https://api.github.com/users/strk","html_url":"https://github.com/strk","followers_url":"https://api.github.com/users/strk/followers","following_url":"https://api.github.com/users/strk/following{/other_user}","gists_url":"https://api.github.com/users/strk/gists{/gist_id}","starred_url":"https://api.github.com/users/strk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strk/subscriptions","organizations_url":"https://api.github.com/users/strk/orgs","repos_url":"https://api.github.com/users/strk/repos","events_url":"https://api.github.com/users/strk/events{/privacy}","received_events_url":"https://api.github.com/users/strk/received_events","type":"User","site_admin":false},"repo":{"id":55598434,"name":"gogs","full_name":"strk/gogs","owner":{"login":"strk","id":289678,"avatar_url":"https://avatars.githubusercontent.com/u/289678?v=3","gravatar_id":"","url":"https://api.github.com/users/strk","html_url":"https://github.com/strk","followers_url":"https://api.github.com/users/strk/followers","following_url":"https://api.github.com/users/strk/following{/other_user}","gists_url":"https://api.github.com/users/strk/gists{/gist_id}","starred_url":"https://api.github.com/users/strk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strk/subscriptions","organizations_url":"https://api.github.com/users/strk/orgs","repos_url":"https://api.github.com/users/strk/repos","events_url":"https://api.github.com/users/strk/events{/privacy}","received_events_url":"https://api.github.com/users/strk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/strk/gogs","description":"Gogs (Go Git Service) is a painless self-hosted Git service.","fork":true,"url":"https://api.github.com/repos/strk/gogs","forks_url":"https://api.github.com/repos/strk/gogs/forks","keys_url":"https://api.github.com/repos/strk/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strk/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strk/gogs/teams","hooks_url":"https://api.github.com/repos/strk/gogs/hooks","issue_events_url":"https://api.github.com/repos/strk/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/strk/gogs/events","assignees_url":"https://api.github.com/repos/strk/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/strk/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/strk/gogs/tags","blobs_url":"https://api.github.com/repos/strk/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strk/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strk/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/strk/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strk/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/strk/gogs/languages","stargazers_url":"https://api.github.com/repos/strk/gogs/stargazers","contributors_url":"https://api.github.com/repos/strk/gogs/contributors","subscribers_url":"https://api.github.com/repos/strk/gogs/subscribers","subscription_url":"https://api.github.com/repos/strk/gogs/subscription","commits_url":"https://api.github.com/repos/strk/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/strk/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/strk/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/strk/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/strk/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/strk/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strk/gogs/merges","archive_url":"https://api.github.com/repos/strk/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strk/gogs/downloads","issues_url":"https://api.github.com/repos/strk/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/strk/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/strk/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/strk/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strk/gogs/labels{/name}","releases_url":"https://api.github.com/repos/strk/gogs/releases{/id}","deployments_url":"https://api.github.com/repos/strk/gogs/deployments","created_at":"2016-04-06T10:56:12Z","updated_at":"2016-04-06T10:56:14Z","pushed_at":"2016-06-27T07:20:42Z","git_url":"git://github.com/strk/gogs.git","ssh_url":"git@github.com:strk/gogs.git","clone_url":"https://github.com/strk/gogs.git","svn_url":"https://github.com/strk/gogs","homepage":"https://gogs.io","size":61163,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"gogits:develop","ref":"develop","sha":"bc00da1721924a642b470a5a1b44672ee9bc5d4c","user":{"login":"gogits","id":6656686,"avatar_url":"https://avatars.githubusercontent.com/u/6656686?v=3","gravatar_id":"","url":"https://api.github.com/users/gogits","html_url":"https://github.com/gogits","followers_url":"https://api.github.com/users/gogits/followers","following_url":"https://api.github.com/users/gogits/following{/other_user}","gists_url":"https://api.github.com/users/gogits/gists{/gist_id}","starred_url":"https://api.github.com/users/gogits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogits/subscriptions","organizations_url":"https://api.github.com/users/gogits/orgs","repos_url":"https://api.github.com/users/gogits/repos","events_url":"https://api.github.com/users/gogits/events{/privacy}","received_events_url":"https://api.github.com/users/gogits/received_events","type":"Organization","site_admin":false},"repo":{"id":16752620,"name":"gogs","full_name":"gogits/gogs","owner":{"login":"gogits","id":6656686,"avatar_url":"https://avatars.githubusercontent.com/u/6656686?v=3","gravatar_id":"","url":"https://api.github.com/users/gogits","html_url":"https://github.com/gogits","followers_url":"https://api.github.com/users/gogits/followers","following_url":"https://api.github.com/users/gogits/following{/other_user}","gists_url":"https://api.github.com/users/gogits/gists{/gist_id}","starred_url":"https://api.github.com/users/gogits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogits/subscriptions","organizations_url":"https://api.github.com/users/gogits/orgs","repos_url":"https://api.github.com/users/gogits/repos","events_url":"https://api.github.com/users/gogits/events{/privacy}","received_events_url":"https://api.github.com/users/gogits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gogits/gogs","description":"Gogs (Go Git Service) is a painless self-hosted Git service.","fork":false,"url":"https://api.github.com/repos/gogits/gogs","forks_url":"https://api.github.com/repos/gogits/gogs/forks","keys_url":"https://api.github.com/repos/gogits/gogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gogits/gogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gogits/gogs/teams","hooks_url":"https://api.github.com/repos/gogits/gogs/hooks","issue_events_url":"https://api.github.com/repos/gogits/gogs/issues/events{/number}","events_url":"https://api.github.com/repos/gogits/gogs/events","assignees_url":"https://api.github.com/repos/gogits/gogs/assignees{/user}","branches_url":"https://api.github.com/repos/gogits/gogs/branches{/branch}","tags_url":"https://api.github.com/repos/gogits/gogs/tags","blobs_url":"https://api.github.com/repos/gogits/gogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gogits/gogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gogits/gogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gogits/gogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gogits/gogs/statuses/{sha}","languages_url":"https://api.github.com/repos/gogits/gogs/languages","stargazers_url":"https://api.github.com/repos/gogits/gogs/stargazers","contributors_url":"https://api.github.com/repos/gogits/gogs/contributors","subscribers_url":"https://api.github.com/repos/gogits/gogs/subscribers","subscription_url":"https://api.github.com/repos/gogits/gogs/subscription","commits_url":"https://api.github.com/repos/gogits/gogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gogits/gogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gogits/gogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gogits/gogs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gogits/gogs/contents/{+path}","compare_url":"https://api.github.com/repos/gogits/gogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gogits/gogs/merges","archive_url":"https://api.github.com/repos/gogits/gogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gogits/gogs/downloads","issues_url":"https://api.github.com/repos/gogits/gogs/issues{/number}","pulls_url":"https://api.github.com/repos/gogits/gogs/pulls{/number}","milestones_url":"https://api.github.com/repos/gogits/gogs/milestones{/number}","notifications_url":"https://api.github.com/repos/gogits/gogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gogits/gogs/labels{/name}","releases_url":"https://api.github.com/repos/gogits/gogs/releases{/id}","deployments_url":"https://api.github.com/repos/gogits/gogs/deployments","created_at":"2014-02-12T01:57:08Z","updated_at":"2016-06-27T08:37:25Z","pushed_at":"2016-06-27T09:02:39Z","git_url":"git://github.com/gogits/gogs.git","ssh_url":"git@github.com:gogits/gogs.git","clone_url":"https://github.com/gogits/gogs.git","svn_url":"https://github.com/gogits/gogs","homepage":"https://gogs.io","size":72218,"stargazers_count":14339,"watchers_count":14339,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1482,"mirror_url":null,"open_issues_count":543,"forks":1482,"open_issues":543,"watchers":14339,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gogits/gogs/pulls/3115"},"html":{"href":"https://github.com/gogits/gogs/pull/3115"},"issue":{"href":"https://api.github.com/repos/gogits/gogs/issues/3115"},"comments":{"href":"https://api.github.com/repos/gogits/gogs/issues/3115/comments"},"review_comments":{"href":"https://api.github.com/repos/gogits/gogs/pulls/3115/comments"},"review_comment":{"href":"https://api.github.com/repos/gogits/gogs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gogits/gogs/pulls/3115/commits"},"statuses":{"href":"https://api.github.com/repos/gogits/gogs/statuses/384f1dda9052131145efdcc3ef126a4513f9e169"}}}}
{"actor":{"display_login":"Unknwon"}}