{"action":"created","comment":{"url":"https://api.github.com/repos/vizorvr/vizor/pulls/comments/70276605","id":70276605,"diff_hunk":"@@ -153,29 +172,123 @@ GraphController.prototype.publicRankedIndex = function(req, res, next) {\n \t.catch(next)\n }\n \n-// GET /fthr\n-GraphController.prototype.userIndex = function(req, res, next) {\n-\tvar username = req.params.model\n+// GET /fthr?public=1|0\n+GraphController.prototype._userOwnIndex = function(user, req, res, next) {\n+\tvar that = this\n+\tvar username = user.username\n+\t// the user wants to see only their private graphs\n+\tvar wantPrivate = undefined\n+\tif (typeof req.query.public !== 'undefined') {\n+\t\twantPrivate = (req.query.public === '0')\n+\t}\n+\n+\tvar makeList = function(list) {","path":"controllers/graphController.js","position":56,"original_position":56,"commit_id":"acdcc3beb4094dfe1784456e5d8d86206d6ffbea","original_commit_id":"acdcc3beb4094dfe1784456e5d8d86206d6ffbea","user":{"login":"kschzt","id":293426,"avatar_url":"https://avatars.githubusercontent.com/u/293426?v=3","gravatar_id":"","url":"https://api.github.com/users/kschzt","html_url":"https://github.com/kschzt","followers_url":"https://api.github.com/users/kschzt/followers","following_url":"https://api.github.com/users/kschzt/following{/other_user}","gists_url":"https://api.github.com/users/kschzt/gists{/gist_id}","starred_url":"https://api.github.com/users/kschzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kschzt/subscriptions","organizations_url":"https://api.github.com/users/kschzt/orgs","repos_url":"https://api.github.com/users/kschzt/repos","events_url":"https://api.github.com/users/kschzt/events{/privacy}","received_events_url":"https://api.github.com/users/kschzt/received_events","type":"User","site_admin":false},"body":"could move this outside `_userOwnIndex` and reuse elsewhere","created_at":"2016-07-11T15:10:50Z","updated_at":"2016-07-11T15:10:50Z","html_url":"https://github.com/vizorvr/vizor/pull/1774#discussion_r70276605","pull_request_url":"https://api.github.com/repos/vizorvr/vizor/pulls/1774","_links":{"self":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/comments/70276605"},"html":{"href":"https://github.com/vizorvr/vizor/pull/1774#discussion_r70276605"},"pull_request":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/1774"}}},"pull_request":{"url":"https://api.github.com/repos/vizorvr/vizor/pulls/1774","id":76495577,"html_url":"https://github.com/vizorvr/vizor/pull/1774","diff_url":"https://github.com/vizorvr/vizor/pull/1774.diff","patch_url":"https://github.com/vizorvr/vizor/pull/1774.patch","issue_url":"https://api.github.com/repos/vizorvr/vizor/issues/1774","number":1774,"state":"open","locked":false,"title":"Userspace initial","user":{"login":"gmarinov","id":14101296,"avatar_url":"https://avatars.githubusercontent.com/u/14101296?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarinov","html_url":"https://github.com/gmarinov","followers_url":"https://api.github.com/users/gmarinov/followers","following_url":"https://api.github.com/users/gmarinov/following{/other_user}","gists_url":"https://api.github.com/users/gmarinov/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarinov/subscriptions","organizations_url":"https://api.github.com/users/gmarinov/orgs","repos_url":"https://api.github.com/users/gmarinov/repos","events_url":"https://api.github.com/users/gmarinov/events{/privacy}","received_events_url":"https://api.github.com/users/gmarinov/received_events","type":"User","site_admin":false},"body":"profile pages to manage user projects and updates to the account page for managing the user's profile","created_at":"2016-07-06T20:25:46Z","updated_at":"2016-07-11T15:10:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab0abf11d89bdc6e2b93963a420e619b2acb7d1a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vizorvr/vizor/pulls/1774/commits","review_comments_url":"https://api.github.com/repos/vizorvr/vizor/pulls/1774/comments","review_comment_url":"https://api.github.com/repos/vizorvr/vizor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vizorvr/vizor/issues/1774/comments","statuses_url":"https://api.github.com/repos/vizorvr/vizor/statuses/acdcc3beb4094dfe1784456e5d8d86206d6ffbea","head":{"label":"vizorvr:develop-userspace","ref":"develop-userspace","sha":"acdcc3beb4094dfe1784456e5d8d86206d6ffbea","user":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"repo":{"id":29096746,"name":"vizor","full_name":"vizorvr/vizor","owner":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vizorvr/vizor","description":"Vizor is a platform for creating and sharing WebVR content","fork":false,"url":"https://api.github.com/repos/vizorvr/vizor","forks_url":"https://api.github.com/repos/vizorvr/vizor/forks","keys_url":"https://api.github.com/repos/vizorvr/vizor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vizorvr/vizor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vizorvr/vizor/teams","hooks_url":"https://api.github.com/repos/vizorvr/vizor/hooks","issue_events_url":"https://api.github.com/repos/vizorvr/vizor/issues/events{/number}","events_url":"https://api.github.com/repos/vizorvr/vizor/events","assignees_url":"https://api.github.com/repos/vizorvr/vizor/assignees{/user}","branches_url":"https://api.github.com/repos/vizorvr/vizor/branches{/branch}","tags_url":"https://api.github.com/repos/vizorvr/vizor/tags","blobs_url":"https://api.github.com/repos/vizorvr/vizor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vizorvr/vizor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vizorvr/vizor/git/refs{/sha}","trees_url":"https://api.github.com/repos/vizorvr/vizor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vizorvr/vizor/statuses/{sha}","languages_url":"https://api.github.com/repos/vizorvr/vizor/languages","stargazers_url":"https://api.github.com/repos/vizorvr/vizor/stargazers","contributors_url":"https://api.github.com/repos/vizorvr/vizor/contributors","subscribers_url":"https://api.github.com/repos/vizorvr/vizor/subscribers","subscription_url":"https://api.github.com/repos/vizorvr/vizor/subscription","commits_url":"https://api.github.com/repos/vizorvr/vizor/commits{/sha}","git_commits_url":"https://api.github.com/repos/vizorvr/vizor/git/commits{/sha}","comments_url":"https://api.github.com/repos/vizorvr/vizor/comments{/number}","issue_comment_url":"https://api.github.com/repos/vizorvr/vizor/issues/comments{/number}","contents_url":"https://api.github.com/repos/vizorvr/vizor/contents/{+path}","compare_url":"https://api.github.com/repos/vizorvr/vizor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vizorvr/vizor/merges","archive_url":"https://api.github.com/repos/vizorvr/vizor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vizorvr/vizor/downloads","issues_url":"https://api.github.com/repos/vizorvr/vizor/issues{/number}","pulls_url":"https://api.github.com/repos/vizorvr/vizor/pulls{/number}","milestones_url":"https://api.github.com/repos/vizorvr/vizor/milestones{/number}","notifications_url":"https://api.github.com/repos/vizorvr/vizor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vizorvr/vizor/labels{/name}","releases_url":"https://api.github.com/repos/vizorvr/vizor/releases{/id}","deployments_url":"https://api.github.com/repos/vizorvr/vizor/deployments","created_at":"2015-01-11T15:54:34Z","updated_at":"2016-07-11T13:43:54Z","pushed_at":"2016-07-10T21:31:01Z","git_url":"git://github.com/vizorvr/vizor.git","ssh_url":"git@github.com:vizorvr/vizor.git","clone_url":"https://github.com/vizorvr/vizor.git","svn_url":"https://github.com/vizorvr/vizor","homepage":"http://vizor.io","size":49477,"stargazers_count":134,"watchers_count":134,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":253,"forks":25,"open_issues":253,"watchers":134,"default_branch":"develop"}},"base":{"label":"vizorvr:develop","ref":"develop","sha":"42522d2cca42c5aa4ccd3eee5655baf0339c07a9","user":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"repo":{"id":29096746,"name":"vizor","full_name":"vizorvr/vizor","owner":{"login":"vizorvr","id":10456166,"avatar_url":"https://avatars.githubusercontent.com/u/10456166?v=3","gravatar_id":"","url":"https://api.github.com/users/vizorvr","html_url":"https://github.com/vizorvr","followers_url":"https://api.github.com/users/vizorvr/followers","following_url":"https://api.github.com/users/vizorvr/following{/other_user}","gists_url":"https://api.github.com/users/vizorvr/gists{/gist_id}","starred_url":"https://api.github.com/users/vizorvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vizorvr/subscriptions","organizations_url":"https://api.github.com/users/vizorvr/orgs","repos_url":"https://api.github.com/users/vizorvr/repos","events_url":"https://api.github.com/users/vizorvr/events{/privacy}","received_events_url":"https://api.github.com/users/vizorvr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vizorvr/vizor","description":"Vizor is a platform for creating and sharing WebVR content","fork":false,"url":"https://api.github.com/repos/vizorvr/vizor","forks_url":"https://api.github.com/repos/vizorvr/vizor/forks","keys_url":"https://api.github.com/repos/vizorvr/vizor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vizorvr/vizor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vizorvr/vizor/teams","hooks_url":"https://api.github.com/repos/vizorvr/vizor/hooks","issue_events_url":"https://api.github.com/repos/vizorvr/vizor/issues/events{/number}","events_url":"https://api.github.com/repos/vizorvr/vizor/events","assignees_url":"https://api.github.com/repos/vizorvr/vizor/assignees{/user}","branches_url":"https://api.github.com/repos/vizorvr/vizor/branches{/branch}","tags_url":"https://api.github.com/repos/vizorvr/vizor/tags","blobs_url":"https://api.github.com/repos/vizorvr/vizor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vizorvr/vizor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vizorvr/vizor/git/refs{/sha}","trees_url":"https://api.github.com/repos/vizorvr/vizor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vizorvr/vizor/statuses/{sha}","languages_url":"https://api.github.com/repos/vizorvr/vizor/languages","stargazers_url":"https://api.github.com/repos/vizorvr/vizor/stargazers","contributors_url":"https://api.github.com/repos/vizorvr/vizor/contributors","subscribers_url":"https://api.github.com/repos/vizorvr/vizor/subscribers","subscription_url":"https://api.github.com/repos/vizorvr/vizor/subscription","commits_url":"https://api.github.com/repos/vizorvr/vizor/commits{/sha}","git_commits_url":"https://api.github.com/repos/vizorvr/vizor/git/commits{/sha}","comments_url":"https://api.github.com/repos/vizorvr/vizor/comments{/number}","issue_comment_url":"https://api.github.com/repos/vizorvr/vizor/issues/comments{/number}","contents_url":"https://api.github.com/repos/vizorvr/vizor/contents/{+path}","compare_url":"https://api.github.com/repos/vizorvr/vizor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vizorvr/vizor/merges","archive_url":"https://api.github.com/repos/vizorvr/vizor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vizorvr/vizor/downloads","issues_url":"https://api.github.com/repos/vizorvr/vizor/issues{/number}","pulls_url":"https://api.github.com/repos/vizorvr/vizor/pulls{/number}","milestones_url":"https://api.github.com/repos/vizorvr/vizor/milestones{/number}","notifications_url":"https://api.github.com/repos/vizorvr/vizor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vizorvr/vizor/labels{/name}","releases_url":"https://api.github.com/repos/vizorvr/vizor/releases{/id}","deployments_url":"https://api.github.com/repos/vizorvr/vizor/deployments","created_at":"2015-01-11T15:54:34Z","updated_at":"2016-07-11T13:43:54Z","pushed_at":"2016-07-10T21:31:01Z","git_url":"git://github.com/vizorvr/vizor.git","ssh_url":"git@github.com:vizorvr/vizor.git","clone_url":"https://github.com/vizorvr/vizor.git","svn_url":"https://github.com/vizorvr/vizor","homepage":"http://vizor.io","size":49477,"stargazers_count":134,"watchers_count":134,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":253,"forks":25,"open_issues":253,"watchers":134,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/1774"},"html":{"href":"https://github.com/vizorvr/vizor/pull/1774"},"issue":{"href":"https://api.github.com/repos/vizorvr/vizor/issues/1774"},"comments":{"href":"https://api.github.com/repos/vizorvr/vizor/issues/1774/comments"},"review_comments":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/1774/comments"},"review_comment":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vizorvr/vizor/pulls/1774/commits"},"statuses":{"href":"https://api.github.com/repos/vizorvr/vizor/statuses/acdcc3beb4094dfe1784456e5d8d86206d6ffbea"}}}}
{"actor":{"display_login":"kschzt"}}