{"action":"created","comment":{"url":"https://api.github.com/repos/mattermost/platform/pulls/comments/37924437","id":37924437,"diff_hunk":"@@ -431,10 +432,22 @@ func IsPrivateIpAddress(ipAddress string) bool {\n }\n \n func RenderWebError(err *model.AppError, w http.ResponseWriter, r *http.Request) {\n+\n+\tprotocol := \"http\"\n+\tif utils.Cfg.ServiceSettings.UseSSL {","path":"api/context.go","position":26,"original_position":26,"commit_id":"6ac39ef687238def1a7175e52bba67d388a70564","original_commit_id":"6ac39ef687238def1a7175e52bba67d388a70564","user":{"login":"coreyhulen","id":1431746,"avatar_url":"https://avatars.githubusercontent.com/u/1431746?v=3","gravatar_id":"","url":"https://api.github.com/users/coreyhulen","html_url":"https://github.com/coreyhulen","followers_url":"https://api.github.com/users/coreyhulen/followers","following_url":"https://api.github.com/users/coreyhulen/following{/other_user}","gists_url":"https://api.github.com/users/coreyhulen/gists{/gist_id}","starred_url":"https://api.github.com/users/coreyhulen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreyhulen/subscriptions","organizations_url":"https://api.github.com/users/coreyhulen/orgs","repos_url":"https://api.github.com/users/coreyhulen/repos","events_url":"https://api.github.com/users/coreyhulen/events{/privacy}","received_events_url":"https://api.github.com/users/coreyhulen/received_events","type":"User","site_admin":false},"body":"not sure the UseSSL check is needed, but it's ok.  We need to cleanup UseSSL, but that's out of scope for this tix.\r\n\r\n","created_at":"2015-08-25T21:53:22Z","updated_at":"2015-08-25T21:53:22Z","html_url":"https://github.com/mattermost/platform/pull/470#discussion_r37924437","pull_request_url":"https://api.github.com/repos/mattermost/platform/pulls/470","_links":{"self":{"href":"https://api.github.com/repos/mattermost/platform/pulls/comments/37924437"},"html":{"href":"https://github.com/mattermost/platform/pull/470#discussion_r37924437"},"pull_request":{"href":"https://api.github.com/repos/mattermost/platform/pulls/470"}}},"pull_request":{"url":"https://api.github.com/repos/mattermost/platform/pulls/470","id":43317463,"html_url":"https://github.com/mattermost/platform/pull/470","diff_url":"https://github.com/mattermost/platform/pull/470.diff","patch_url":"https://github.com/mattermost/platform/pull/470.patch","issue_url":"https://api.github.com/repos/mattermost/platform/issues/470","number":470,"state":"open","locked":false,"title":"MM-1945 Added a link to error page that returns users to the root page","user":{"login":"nickago","id":8923630,"avatar_url":"https://avatars.githubusercontent.com/u/8923630?v=3","gravatar_id":"","url":"https://api.github.com/users/nickago","html_url":"https://github.com/nickago","followers_url":"https://api.github.com/users/nickago/followers","following_url":"https://api.github.com/users/nickago/following{/other_user}","gists_url":"https://api.github.com/users/nickago/gists{/gist_id}","starred_url":"https://api.github.com/users/nickago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickago/subscriptions","organizations_url":"https://api.github.com/users/nickago/orgs","repos_url":"https://api.github.com/users/nickago/repos","events_url":"https://api.github.com/users/nickago/events{/privacy}","received_events_url":"https://api.github.com/users/nickago/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-25T18:06:33Z","updated_at":"2015-08-25T21:53:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e212c206b00a0ad4dbfd1f904d1303851836d534","assignee":{"login":"jwilander","id":2672098,"avatar_url":"https://avatars.githubusercontent.com/u/2672098?v=3","gravatar_id":"","url":"https://api.github.com/users/jwilander","html_url":"https://github.com/jwilander","followers_url":"https://api.github.com/users/jwilander/followers","following_url":"https://api.github.com/users/jwilander/following{/other_user}","gists_url":"https://api.github.com/users/jwilander/gists{/gist_id}","starred_url":"https://api.github.com/users/jwilander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwilander/subscriptions","organizations_url":"https://api.github.com/users/jwilander/orgs","repos_url":"https://api.github.com/users/jwilander/repos","events_url":"https://api.github.com/users/jwilander/events{/privacy}","received_events_url":"https://api.github.com/users/jwilander/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mattermost/platform/milestones/2","html_url":"https://github.com/mattermost/platform/milestones/v0.7.0","labels_url":"https://api.github.com/repos/mattermost/platform/milestones/2/labels","id":1229900,"number":2,"title":"v0.7.0","description":"","creator":{"login":"it33","id":177788,"avatar_url":"https://avatars.githubusercontent.com/u/177788?v=3","gravatar_id":"","url":"https://api.github.com/users/it33","html_url":"https://github.com/it33","followers_url":"https://api.github.com/users/it33/followers","following_url":"https://api.github.com/users/it33/following{/other_user}","gists_url":"https://api.github.com/users/it33/gists{/gist_id}","starred_url":"https://api.github.com/users/it33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it33/subscriptions","organizations_url":"https://api.github.com/users/it33/orgs","repos_url":"https://api.github.com/users/it33/repos","events_url":"https://api.github.com/users/it33/events{/privacy}","received_events_url":"https://api.github.com/users/it33/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":80,"state":"open","created_at":"2015-07-28T17:01:12Z","updated_at":"2015-08-25T20:39:52Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/mattermost/platform/pulls/470/commits","review_comments_url":"https://api.github.com/repos/mattermost/platform/pulls/470/comments","review_comment_url":"https://api.github.com/repos/mattermost/platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattermost/platform/issues/470/comments","statuses_url":"https://api.github.com/repos/mattermost/platform/statuses/6ac39ef687238def1a7175e52bba67d388a70564","head":{"label":"nickago:MM-1945","ref":"MM-1945","sha":"6ac39ef687238def1a7175e52bba67d388a70564","user":{"login":"nickago","id":8923630,"avatar_url":"https://avatars.githubusercontent.com/u/8923630?v=3","gravatar_id":"","url":"https://api.github.com/users/nickago","html_url":"https://github.com/nickago","followers_url":"https://api.github.com/users/nickago/followers","following_url":"https://api.github.com/users/nickago/following{/other_user}","gists_url":"https://api.github.com/users/nickago/gists{/gist_id}","starred_url":"https://api.github.com/users/nickago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickago/subscriptions","organizations_url":"https://api.github.com/users/nickago/orgs","repos_url":"https://api.github.com/users/nickago/repos","events_url":"https://api.github.com/users/nickago/events{/privacy}","received_events_url":"https://api.github.com/users/nickago/received_events","type":"User","site_admin":false},"repo":{"id":37983086,"name":"platform","full_name":"nickago/platform","owner":{"login":"nickago","id":8923630,"avatar_url":"https://avatars.githubusercontent.com/u/8923630?v=3","gravatar_id":"","url":"https://api.github.com/users/nickago","html_url":"https://github.com/nickago","followers_url":"https://api.github.com/users/nickago/followers","following_url":"https://api.github.com/users/nickago/following{/other_user}","gists_url":"https://api.github.com/users/nickago/gists{/gist_id}","starred_url":"https://api.github.com/users/nickago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickago/subscriptions","organizations_url":"https://api.github.com/users/nickago/orgs","repos_url":"https://api.github.com/users/nickago/repos","events_url":"https://api.github.com/users/nickago/events{/privacy}","received_events_url":"https://api.github.com/users/nickago/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickago/platform","description":"Team communication service across PC and phones, with archiving and search.","fork":true,"url":"https://api.github.com/repos/nickago/platform","forks_url":"https://api.github.com/repos/nickago/platform/forks","keys_url":"https://api.github.com/repos/nickago/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickago/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickago/platform/teams","hooks_url":"https://api.github.com/repos/nickago/platform/hooks","issue_events_url":"https://api.github.com/repos/nickago/platform/issues/events{/number}","events_url":"https://api.github.com/repos/nickago/platform/events","assignees_url":"https://api.github.com/repos/nickago/platform/assignees{/user}","branches_url":"https://api.github.com/repos/nickago/platform/branches{/branch}","tags_url":"https://api.github.com/repos/nickago/platform/tags","blobs_url":"https://api.github.com/repos/nickago/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickago/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickago/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickago/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickago/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/nickago/platform/languages","stargazers_url":"https://api.github.com/repos/nickago/platform/stargazers","contributors_url":"https://api.github.com/repos/nickago/platform/contributors","subscribers_url":"https://api.github.com/repos/nickago/platform/subscribers","subscription_url":"https://api.github.com/repos/nickago/platform/subscription","commits_url":"https://api.github.com/repos/nickago/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickago/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickago/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickago/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickago/platform/contents/{+path}","compare_url":"https://api.github.com/repos/nickago/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickago/platform/merges","archive_url":"https://api.github.com/repos/nickago/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickago/platform/downloads","issues_url":"https://api.github.com/repos/nickago/platform/issues{/number}","pulls_url":"https://api.github.com/repos/nickago/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/nickago/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/nickago/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickago/platform/labels{/name}","releases_url":"https://api.github.com/repos/nickago/platform/releases{/id}","created_at":"2015-06-24T12:29:18Z","updated_at":"2015-07-08T18:22:27Z","pushed_at":"2015-08-25T20:26:29Z","git_url":"git://github.com/nickago/platform.git","ssh_url":"git@github.com:nickago/platform.git","clone_url":"https://github.com/nickago/platform.git","svn_url":"https://github.com/nickago/platform","homepage":"http://mattermost.org","size":6309,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"mattermost:master","ref":"master","sha":"b4ee26373042d2c5ab422a4955022fb278cb8fa1","user":{"login":"mattermost","id":9828093,"avatar_url":"https://avatars.githubusercontent.com/u/9828093?v=3","gravatar_id":"","url":"https://api.github.com/users/mattermost","html_url":"https://github.com/mattermost","followers_url":"https://api.github.com/users/mattermost/followers","following_url":"https://api.github.com/users/mattermost/following{/other_user}","gists_url":"https://api.github.com/users/mattermost/gists{/gist_id}","starred_url":"https://api.github.com/users/mattermost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattermost/subscriptions","organizations_url":"https://api.github.com/users/mattermost/orgs","repos_url":"https://api.github.com/users/mattermost/repos","events_url":"https://api.github.com/users/mattermost/events{/privacy}","received_events_url":"https://api.github.com/users/mattermost/received_events","type":"Organization","site_admin":false},"repo":{"id":37448451,"name":"platform","full_name":"mattermost/platform","owner":{"login":"mattermost","id":9828093,"avatar_url":"https://avatars.githubusercontent.com/u/9828093?v=3","gravatar_id":"","url":"https://api.github.com/users/mattermost","html_url":"https://github.com/mattermost","followers_url":"https://api.github.com/users/mattermost/followers","following_url":"https://api.github.com/users/mattermost/following{/other_user}","gists_url":"https://api.github.com/users/mattermost/gists{/gist_id}","starred_url":"https://api.github.com/users/mattermost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattermost/subscriptions","organizations_url":"https://api.github.com/users/mattermost/orgs","repos_url":"https://api.github.com/users/mattermost/repos","events_url":"https://api.github.com/users/mattermost/events{/privacy}","received_events_url":"https://api.github.com/users/mattermost/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mattermost/platform","description":"Open source Slack-alternative in Golang and React","fork":false,"url":"https://api.github.com/repos/mattermost/platform","forks_url":"https://api.github.com/repos/mattermost/platform/forks","keys_url":"https://api.github.com/repos/mattermost/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattermost/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattermost/platform/teams","hooks_url":"https://api.github.com/repos/mattermost/platform/hooks","issue_events_url":"https://api.github.com/repos/mattermost/platform/issues/events{/number}","events_url":"https://api.github.com/repos/mattermost/platform/events","assignees_url":"https://api.github.com/repos/mattermost/platform/assignees{/user}","branches_url":"https://api.github.com/repos/mattermost/platform/branches{/branch}","tags_url":"https://api.github.com/repos/mattermost/platform/tags","blobs_url":"https://api.github.com/repos/mattermost/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattermost/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattermost/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattermost/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattermost/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/mattermost/platform/languages","stargazers_url":"https://api.github.com/repos/mattermost/platform/stargazers","contributors_url":"https://api.github.com/repos/mattermost/platform/contributors","subscribers_url":"https://api.github.com/repos/mattermost/platform/subscribers","subscription_url":"https://api.github.com/repos/mattermost/platform/subscription","commits_url":"https://api.github.com/repos/mattermost/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattermost/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattermost/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattermost/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattermost/platform/contents/{+path}","compare_url":"https://api.github.com/repos/mattermost/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattermost/platform/merges","archive_url":"https://api.github.com/repos/mattermost/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattermost/platform/downloads","issues_url":"https://api.github.com/repos/mattermost/platform/issues{/number}","pulls_url":"https://api.github.com/repos/mattermost/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/mattermost/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/mattermost/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattermost/platform/labels{/name}","releases_url":"https://api.github.com/repos/mattermost/platform/releases{/id}","created_at":"2015-06-15T06:50:02Z","updated_at":"2015-08-25T20:44:51Z","pushed_at":"2015-08-25T21:47:00Z","git_url":"git://github.com/mattermost/platform.git","ssh_url":"git@github.com:mattermost/platform.git","clone_url":"https://github.com/mattermost/platform.git","svn_url":"https://github.com/mattermost/platform","homepage":"http://mattermost.org","size":10449,"stargazers_count":2849,"watchers_count":2849,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":222,"mirror_url":null,"open_issues_count":15,"forks":222,"open_issues":15,"watchers":2849,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattermost/platform/pulls/470"},"html":{"href":"https://github.com/mattermost/platform/pull/470"},"issue":{"href":"https://api.github.com/repos/mattermost/platform/issues/470"},"comments":{"href":"https://api.github.com/repos/mattermost/platform/issues/470/comments"},"review_comments":{"href":"https://api.github.com/repos/mattermost/platform/pulls/470/comments"},"review_comment":{"href":"https://api.github.com/repos/mattermost/platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattermost/platform/pulls/470/commits"},"statuses":{"href":"https://api.github.com/repos/mattermost/platform/statuses/6ac39ef687238def1a7175e52bba67d388a70564"}}}}