{"action":"created","comment":{"url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments/84757658","pull_request_review_id":5514913,"id":84757658,"diff_hunk":"@@ -38,6 +38,21 @@ const afterCreatingMembership = (req, res, ms, community, preexisting) => {\n   }))\n }\n \n+const approveAJoinRequest = (req, res, joinRequest, community) => {","path":"api/controllers/CommunityController.js","position":4,"original_position":4,"commit_id":"16ccb145661412f59abb9dea7d7479d19499d00d","original_commit_id":"16ccb145661412f59abb9dea7d7479d19499d00d","user":{"login":"levity","id":193667,"avatar_url":"https://avatars.githubusercontent.com/u/193667?v=3","gravatar_id":"","url":"https://api.github.com/users/levity","html_url":"https://github.com/levity","followers_url":"https://api.github.com/users/levity/followers","following_url":"https://api.github.com/users/levity/following{/other_user}","gists_url":"https://api.github.com/users/levity/gists{/gist_id}","starred_url":"https://api.github.com/users/levity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/levity/subscriptions","organizations_url":"https://api.github.com/users/levity/orgs","repos_url":"https://api.github.com/users/levity/repos","events_url":"https://api.github.com/users/levity/events{/privacy}","received_events_url":"https://api.github.com/users/levity/received_events","type":"User","site_admin":false},"body":"you could also refactor this to `curry((req, res, community, joinRequest) => ...)` and then use it below with the first three args filled out, e.g. `then(approveJoinRequest(req, res, community))`","created_at":"2016-10-24T18:53:16Z","updated_at":"2016-10-24T18:53:16Z","html_url":"https://github.com/Hylozoic/hylo-node/pull/182#discussion_r84757658","pull_request_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/182","_links":{"self":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments/84757658"},"html":{"href":"https://github.com/Hylozoic/hylo-node/pull/182#discussion_r84757658"},"pull_request":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/182"}}},"pull_request":{"url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/182","id":90538668,"html_url":"https://github.com/Hylozoic/hylo-node/pull/182","diff_url":"https://github.com/Hylozoic/hylo-node/pull/182.diff","patch_url":"https://github.com/Hylozoic/hylo-node/pull/182.patch","issue_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/182","number":182,"state":"open","locked":false,"title":"Updated Invite Page","user":{"login":"robbiecarlton","id":891124,"avatar_url":"https://avatars.githubusercontent.com/u/891124?v=3","gravatar_id":"","url":"https://api.github.com/users/robbiecarlton","html_url":"https://github.com/robbiecarlton","followers_url":"https://api.github.com/users/robbiecarlton/followers","following_url":"https://api.github.com/users/robbiecarlton/following{/other_user}","gists_url":"https://api.github.com/users/robbiecarlton/gists{/gist_id}","starred_url":"https://api.github.com/users/robbiecarlton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbiecarlton/subscriptions","organizations_url":"https://api.github.com/users/robbiecarlton/orgs","repos_url":"https://api.github.com/users/robbiecarlton/repos","events_url":"https://api.github.com/users/robbiecarlton/events{/privacy}","received_events_url":"https://api.github.com/users/robbiecarlton/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-24T01:33:49Z","updated_at":"2016-10-24T18:53:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af1e0926c223a2de42c2956f9dcbe5083f3862fa","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/182/commits","review_comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/182/comments","review_comment_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/182/comments","statuses_url":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/16ccb145661412f59abb9dea7d7479d19499d00d","head":{"label":"Hylozoic:resend-invites","ref":"resend-invites","sha":"16ccb145661412f59abb9dea7d7479d19499d00d","user":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"repo":{"id":25898898,"name":"hylo-node","full_name":"Hylozoic/hylo-node","owner":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Hylozoic/hylo-node","description":"The Hylo API.","fork":false,"url":"https://api.github.com/repos/Hylozoic/hylo-node","forks_url":"https://api.github.com/repos/Hylozoic/hylo-node/forks","keys_url":"https://api.github.com/repos/Hylozoic/hylo-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hylozoic/hylo-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hylozoic/hylo-node/teams","hooks_url":"https://api.github.com/repos/Hylozoic/hylo-node/hooks","issue_events_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/events{/number}","events_url":"https://api.github.com/repos/Hylozoic/hylo-node/events","assignees_url":"https://api.github.com/repos/Hylozoic/hylo-node/assignees{/user}","branches_url":"https://api.github.com/repos/Hylozoic/hylo-node/branches{/branch}","tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/tags","blobs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/{sha}","languages_url":"https://api.github.com/repos/Hylozoic/hylo-node/languages","stargazers_url":"https://api.github.com/repos/Hylozoic/hylo-node/stargazers","contributors_url":"https://api.github.com/repos/Hylozoic/hylo-node/contributors","subscribers_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscribers","subscription_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscription","commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hylozoic/hylo-node/contents/{+path}","compare_url":"https://api.github.com/repos/Hylozoic/hylo-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hylozoic/hylo-node/merges","archive_url":"https://api.github.com/repos/Hylozoic/hylo-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hylozoic/hylo-node/downloads","issues_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues{/number}","pulls_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls{/number}","milestones_url":"https://api.github.com/repos/Hylozoic/hylo-node/milestones{/number}","notifications_url":"https://api.github.com/repos/Hylozoic/hylo-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hylozoic/hylo-node/labels{/name}","releases_url":"https://api.github.com/repos/Hylozoic/hylo-node/releases{/id}","deployments_url":"https://api.github.com/repos/Hylozoic/hylo-node/deployments","created_at":"2014-10-29T01:39:40Z","updated_at":"2016-10-24T01:55:30Z","pushed_at":"2016-10-24T01:55:29Z","git_url":"git://github.com/Hylozoic/hylo-node.git","ssh_url":"git@github.com:Hylozoic/hylo-node.git","clone_url":"https://github.com/Hylozoic/hylo-node.git","svn_url":"https://github.com/Hylozoic/hylo-node","homepage":"https://www.hylo.com/","size":2900,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":4,"forks":10,"open_issues":4,"watchers":14,"default_branch":"master"}},"base":{"label":"Hylozoic:master","ref":"master","sha":"02f3bc40d5c141f68dec16b116d144e290fd66e2","user":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"repo":{"id":25898898,"name":"hylo-node","full_name":"Hylozoic/hylo-node","owner":{"login":"Hylozoic","id":2053962,"avatar_url":"https://avatars.githubusercontent.com/u/2053962?v=3","gravatar_id":"","url":"https://api.github.com/users/Hylozoic","html_url":"https://github.com/Hylozoic","followers_url":"https://api.github.com/users/Hylozoic/followers","following_url":"https://api.github.com/users/Hylozoic/following{/other_user}","gists_url":"https://api.github.com/users/Hylozoic/gists{/gist_id}","starred_url":"https://api.github.com/users/Hylozoic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hylozoic/subscriptions","organizations_url":"https://api.github.com/users/Hylozoic/orgs","repos_url":"https://api.github.com/users/Hylozoic/repos","events_url":"https://api.github.com/users/Hylozoic/events{/privacy}","received_events_url":"https://api.github.com/users/Hylozoic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Hylozoic/hylo-node","description":"The Hylo API.","fork":false,"url":"https://api.github.com/repos/Hylozoic/hylo-node","forks_url":"https://api.github.com/repos/Hylozoic/hylo-node/forks","keys_url":"https://api.github.com/repos/Hylozoic/hylo-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hylozoic/hylo-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hylozoic/hylo-node/teams","hooks_url":"https://api.github.com/repos/Hylozoic/hylo-node/hooks","issue_events_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/events{/number}","events_url":"https://api.github.com/repos/Hylozoic/hylo-node/events","assignees_url":"https://api.github.com/repos/Hylozoic/hylo-node/assignees{/user}","branches_url":"https://api.github.com/repos/Hylozoic/hylo-node/branches{/branch}","tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/tags","blobs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/{sha}","languages_url":"https://api.github.com/repos/Hylozoic/hylo-node/languages","stargazers_url":"https://api.github.com/repos/Hylozoic/hylo-node/stargazers","contributors_url":"https://api.github.com/repos/Hylozoic/hylo-node/contributors","subscribers_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscribers","subscription_url":"https://api.github.com/repos/Hylozoic/hylo-node/subscription","commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hylozoic/hylo-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hylozoic/hylo-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hylozoic/hylo-node/contents/{+path}","compare_url":"https://api.github.com/repos/Hylozoic/hylo-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hylozoic/hylo-node/merges","archive_url":"https://api.github.com/repos/Hylozoic/hylo-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hylozoic/hylo-node/downloads","issues_url":"https://api.github.com/repos/Hylozoic/hylo-node/issues{/number}","pulls_url":"https://api.github.com/repos/Hylozoic/hylo-node/pulls{/number}","milestones_url":"https://api.github.com/repos/Hylozoic/hylo-node/milestones{/number}","notifications_url":"https://api.github.com/repos/Hylozoic/hylo-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hylozoic/hylo-node/labels{/name}","releases_url":"https://api.github.com/repos/Hylozoic/hylo-node/releases{/id}","deployments_url":"https://api.github.com/repos/Hylozoic/hylo-node/deployments","created_at":"2014-10-29T01:39:40Z","updated_at":"2016-10-24T01:55:30Z","pushed_at":"2016-10-24T01:55:29Z","git_url":"git://github.com/Hylozoic/hylo-node.git","ssh_url":"git@github.com:Hylozoic/hylo-node.git","clone_url":"https://github.com/Hylozoic/hylo-node.git","svn_url":"https://github.com/Hylozoic/hylo-node","homepage":"https://www.hylo.com/","size":2900,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":4,"forks":10,"open_issues":4,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/182"},"html":{"href":"https://github.com/Hylozoic/hylo-node/pull/182"},"issue":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/issues/182"},"comments":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/issues/182/comments"},"review_comments":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/182/comments"},"review_comment":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/pulls/182/commits"},"statuses":{"href":"https://api.github.com/repos/Hylozoic/hylo-node/statuses/16ccb145661412f59abb9dea7d7479d19499d00d"}}}}
{"actor":{"display_login":"levity"}}