{"action":"created","comment":{"url":"https://api.github.com/repos/br-dr/best-friends/pulls/comments/81037519","pull_request_review_id":2047090,"id":81037519,"diff_hunk":"@@ -148,6 +149,52 @@ app.post('/api/user/:id/add-post/', ensureAuthenticated, (req, res) => {\n         });\n });\n \n+app.post('/api/posts/:id/like-post', ensureAuthenticated, (req, res) => {\n+    var id = req.params.id;\n+    Post.findOne({ _id: id })","path":"server/routes.js","position":14,"original_position":14,"commit_id":"f77f005139d39a1449c1c0625d892f63bcc5fa2a","original_commit_id":"f77f005139d39a1449c1c0625d892f63bcc5fa2a","user":{"login":"andrewdacenko","id":2395231,"avatar_url":"https://avatars.githubusercontent.com/u/2395231?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewdacenko","html_url":"https://github.com/andrewdacenko","followers_url":"https://api.github.com/users/andrewdacenko/followers","following_url":"https://api.github.com/users/andrewdacenko/following{/other_user}","gists_url":"https://api.github.com/users/andrewdacenko/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewdacenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewdacenko/subscriptions","organizations_url":"https://api.github.com/users/andrewdacenko/orgs","repos_url":"https://api.github.com/users/andrewdacenko/repos","events_url":"https://api.github.com/users/andrewdacenko/events{/privacy}","received_events_url":"https://api.github.com/users/andrewdacenko/received_events","type":"User","site_admin":false},"body":"add new line or use `Post.findOne({ _id: req.params.id })`","created_at":"2016-09-28T23:16:23Z","updated_at":"2016-09-28T23:17:06Z","html_url":"https://github.com/br-dr/best-friends/pull/66#discussion_r81037519","pull_request_url":"https://api.github.com/repos/br-dr/best-friends/pulls/66","_links":{"self":{"href":"https://api.github.com/repos/br-dr/best-friends/pulls/comments/81037519"},"html":{"href":"https://github.com/br-dr/best-friends/pull/66#discussion_r81037519"},"pull_request":{"href":"https://api.github.com/repos/br-dr/best-friends/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/br-dr/best-friends/pulls/66","id":87218581,"html_url":"https://github.com/br-dr/best-friends/pull/66","diff_url":"https://github.com/br-dr/best-friends/pull/66.diff","patch_url":"https://github.com/br-dr/best-friends/pull/66.patch","issue_url":"https://api.github.com/repos/br-dr/best-friends/issues/66","number":66,"state":"open","locked":false,"title":"close #64 Feature/add likes","user":{"login":"slava89","id":14152995,"avatar_url":"https://avatars.githubusercontent.com/u/14152995?v=3","gravatar_id":"","url":"https://api.github.com/users/slava89","html_url":"https://github.com/slava89","followers_url":"https://api.github.com/users/slava89/followers","following_url":"https://api.github.com/users/slava89/following{/other_user}","gists_url":"https://api.github.com/users/slava89/gists{/gist_id}","starred_url":"https://api.github.com/users/slava89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slava89/subscriptions","organizations_url":"https://api.github.com/users/slava89/orgs","repos_url":"https://api.github.com/users/slava89/repos","events_url":"https://api.github.com/users/slava89/events{/privacy}","received_events_url":"https://api.github.com/users/slava89/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-28T23:07:31Z","updated_at":"2016-09-28T23:17:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/br-dr/best-friends/pulls/66/commits","review_comments_url":"https://api.github.com/repos/br-dr/best-friends/pulls/66/comments","review_comment_url":"https://api.github.com/repos/br-dr/best-friends/pulls/comments{/number}","comments_url":"https://api.github.com/repos/br-dr/best-friends/issues/66/comments","statuses_url":"https://api.github.com/repos/br-dr/best-friends/statuses/f77f005139d39a1449c1c0625d892f63bcc5fa2a","head":{"label":"br-dr:feature/add-likes","ref":"feature/add-likes","sha":"f77f005139d39a1449c1c0625d892f63bcc5fa2a","user":{"login":"br-dr","id":20194207,"avatar_url":"https://avatars.githubusercontent.com/u/20194207?v=3","gravatar_id":"","url":"https://api.github.com/users/br-dr","html_url":"https://github.com/br-dr","followers_url":"https://api.github.com/users/br-dr/followers","following_url":"https://api.github.com/users/br-dr/following{/other_user}","gists_url":"https://api.github.com/users/br-dr/gists{/gist_id}","starred_url":"https://api.github.com/users/br-dr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br-dr/subscriptions","organizations_url":"https://api.github.com/users/br-dr/orgs","repos_url":"https://api.github.com/users/br-dr/repos","events_url":"https://api.github.com/users/br-dr/events{/privacy}","received_events_url":"https://api.github.com/users/br-dr/received_events","type":"Organization","site_admin":false},"repo":{"id":63256366,"name":"best-friends","full_name":"br-dr/best-friends","owner":{"login":"br-dr","id":20194207,"avatar_url":"https://avatars.githubusercontent.com/u/20194207?v=3","gravatar_id":"","url":"https://api.github.com/users/br-dr","html_url":"https://github.com/br-dr","followers_url":"https://api.github.com/users/br-dr/followers","following_url":"https://api.github.com/users/br-dr/following{/other_user}","gists_url":"https://api.github.com/users/br-dr/gists{/gist_id}","starred_url":"https://api.github.com/users/br-dr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br-dr/subscriptions","organizations_url":"https://api.github.com/users/br-dr/orgs","repos_url":"https://api.github.com/users/br-dr/repos","events_url":"https://api.github.com/users/br-dr/events{/privacy}","received_events_url":"https://api.github.com/users/br-dr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/br-dr/best-friends","description":"Social network for best friend","fork":false,"url":"https://api.github.com/repos/br-dr/best-friends","forks_url":"https://api.github.com/repos/br-dr/best-friends/forks","keys_url":"https://api.github.com/repos/br-dr/best-friends/keys{/key_id}","collaborators_url":"https://api.github.com/repos/br-dr/best-friends/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/br-dr/best-friends/teams","hooks_url":"https://api.github.com/repos/br-dr/best-friends/hooks","issue_events_url":"https://api.github.com/repos/br-dr/best-friends/issues/events{/number}","events_url":"https://api.github.com/repos/br-dr/best-friends/events","assignees_url":"https://api.github.com/repos/br-dr/best-friends/assignees{/user}","branches_url":"https://api.github.com/repos/br-dr/best-friends/branches{/branch}","tags_url":"https://api.github.com/repos/br-dr/best-friends/tags","blobs_url":"https://api.github.com/repos/br-dr/best-friends/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/br-dr/best-friends/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/br-dr/best-friends/git/refs{/sha}","trees_url":"https://api.github.com/repos/br-dr/best-friends/git/trees{/sha}","statuses_url":"https://api.github.com/repos/br-dr/best-friends/statuses/{sha}","languages_url":"https://api.github.com/repos/br-dr/best-friends/languages","stargazers_url":"https://api.github.com/repos/br-dr/best-friends/stargazers","contributors_url":"https://api.github.com/repos/br-dr/best-friends/contributors","subscribers_url":"https://api.github.com/repos/br-dr/best-friends/subscribers","subscription_url":"https://api.github.com/repos/br-dr/best-friends/subscription","commits_url":"https://api.github.com/repos/br-dr/best-friends/commits{/sha}","git_commits_url":"https://api.github.com/repos/br-dr/best-friends/git/commits{/sha}","comments_url":"https://api.github.com/repos/br-dr/best-friends/comments{/number}","issue_comment_url":"https://api.github.com/repos/br-dr/best-friends/issues/comments{/number}","contents_url":"https://api.github.com/repos/br-dr/best-friends/contents/{+path}","compare_url":"https://api.github.com/repos/br-dr/best-friends/compare/{base}...{head}","merges_url":"https://api.github.com/repos/br-dr/best-friends/merges","archive_url":"https://api.github.com/repos/br-dr/best-friends/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/br-dr/best-friends/downloads","issues_url":"https://api.github.com/repos/br-dr/best-friends/issues{/number}","pulls_url":"https://api.github.com/repos/br-dr/best-friends/pulls{/number}","milestones_url":"https://api.github.com/repos/br-dr/best-friends/milestones{/number}","notifications_url":"https://api.github.com/repos/br-dr/best-friends/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/br-dr/best-friends/labels{/name}","releases_url":"https://api.github.com/repos/br-dr/best-friends/releases{/id}","deployments_url":"https://api.github.com/repos/br-dr/best-friends/deployments","created_at":"2016-07-13T15:09:45Z","updated_at":"2016-08-04T17:20:46Z","pushed_at":"2016-09-28T23:07:31Z","git_url":"git://github.com/br-dr/best-friends.git","ssh_url":"git@github.com:br-dr/best-friends.git","clone_url":"https://github.com/br-dr/best-friends.git","svn_url":"https://github.com/br-dr/best-friends","homepage":"https://befriends.herokuapp.com/","size":1049,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"br-dr:master","ref":"master","sha":"fe75b43ae9f40d2c777a063b83003f145382c950","user":{"login":"br-dr","id":20194207,"avatar_url":"https://avatars.githubusercontent.com/u/20194207?v=3","gravatar_id":"","url":"https://api.github.com/users/br-dr","html_url":"https://github.com/br-dr","followers_url":"https://api.github.com/users/br-dr/followers","following_url":"https://api.github.com/users/br-dr/following{/other_user}","gists_url":"https://api.github.com/users/br-dr/gists{/gist_id}","starred_url":"https://api.github.com/users/br-dr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br-dr/subscriptions","organizations_url":"https://api.github.com/users/br-dr/orgs","repos_url":"https://api.github.com/users/br-dr/repos","events_url":"https://api.github.com/users/br-dr/events{/privacy}","received_events_url":"https://api.github.com/users/br-dr/received_events","type":"Organization","site_admin":false},"repo":{"id":63256366,"name":"best-friends","full_name":"br-dr/best-friends","owner":{"login":"br-dr","id":20194207,"avatar_url":"https://avatars.githubusercontent.com/u/20194207?v=3","gravatar_id":"","url":"https://api.github.com/users/br-dr","html_url":"https://github.com/br-dr","followers_url":"https://api.github.com/users/br-dr/followers","following_url":"https://api.github.com/users/br-dr/following{/other_user}","gists_url":"https://api.github.com/users/br-dr/gists{/gist_id}","starred_url":"https://api.github.com/users/br-dr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/br-dr/subscriptions","organizations_url":"https://api.github.com/users/br-dr/orgs","repos_url":"https://api.github.com/users/br-dr/repos","events_url":"https://api.github.com/users/br-dr/events{/privacy}","received_events_url":"https://api.github.com/users/br-dr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/br-dr/best-friends","description":"Social network for best friend","fork":false,"url":"https://api.github.com/repos/br-dr/best-friends","forks_url":"https://api.github.com/repos/br-dr/best-friends/forks","keys_url":"https://api.github.com/repos/br-dr/best-friends/keys{/key_id}","collaborators_url":"https://api.github.com/repos/br-dr/best-friends/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/br-dr/best-friends/teams","hooks_url":"https://api.github.com/repos/br-dr/best-friends/hooks","issue_events_url":"https://api.github.com/repos/br-dr/best-friends/issues/events{/number}","events_url":"https://api.github.com/repos/br-dr/best-friends/events","assignees_url":"https://api.github.com/repos/br-dr/best-friends/assignees{/user}","branches_url":"https://api.github.com/repos/br-dr/best-friends/branches{/branch}","tags_url":"https://api.github.com/repos/br-dr/best-friends/tags","blobs_url":"https://api.github.com/repos/br-dr/best-friends/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/br-dr/best-friends/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/br-dr/best-friends/git/refs{/sha}","trees_url":"https://api.github.com/repos/br-dr/best-friends/git/trees{/sha}","statuses_url":"https://api.github.com/repos/br-dr/best-friends/statuses/{sha}","languages_url":"https://api.github.com/repos/br-dr/best-friends/languages","stargazers_url":"https://api.github.com/repos/br-dr/best-friends/stargazers","contributors_url":"https://api.github.com/repos/br-dr/best-friends/contributors","subscribers_url":"https://api.github.com/repos/br-dr/best-friends/subscribers","subscription_url":"https://api.github.com/repos/br-dr/best-friends/subscription","commits_url":"https://api.github.com/repos/br-dr/best-friends/commits{/sha}","git_commits_url":"https://api.github.com/repos/br-dr/best-friends/git/commits{/sha}","comments_url":"https://api.github.com/repos/br-dr/best-friends/comments{/number}","issue_comment_url":"https://api.github.com/repos/br-dr/best-friends/issues/comments{/number}","contents_url":"https://api.github.com/repos/br-dr/best-friends/contents/{+path}","compare_url":"https://api.github.com/repos/br-dr/best-friends/compare/{base}...{head}","merges_url":"https://api.github.com/repos/br-dr/best-friends/merges","archive_url":"https://api.github.com/repos/br-dr/best-friends/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/br-dr/best-friends/downloads","issues_url":"https://api.github.com/repos/br-dr/best-friends/issues{/number}","pulls_url":"https://api.github.com/repos/br-dr/best-friends/pulls{/number}","milestones_url":"https://api.github.com/repos/br-dr/best-friends/milestones{/number}","notifications_url":"https://api.github.com/repos/br-dr/best-friends/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/br-dr/best-friends/labels{/name}","releases_url":"https://api.github.com/repos/br-dr/best-friends/releases{/id}","deployments_url":"https://api.github.com/repos/br-dr/best-friends/deployments","created_at":"2016-07-13T15:09:45Z","updated_at":"2016-08-04T17:20:46Z","pushed_at":"2016-09-28T23:07:31Z","git_url":"git://github.com/br-dr/best-friends.git","ssh_url":"git@github.com:br-dr/best-friends.git","clone_url":"https://github.com/br-dr/best-friends.git","svn_url":"https://github.com/br-dr/best-friends","homepage":"https://befriends.herokuapp.com/","size":1049,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/br-dr/best-friends/pulls/66"},"html":{"href":"https://github.com/br-dr/best-friends/pull/66"},"issue":{"href":"https://api.github.com/repos/br-dr/best-friends/issues/66"},"comments":{"href":"https://api.github.com/repos/br-dr/best-friends/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/br-dr/best-friends/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/br-dr/best-friends/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/br-dr/best-friends/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/br-dr/best-friends/statuses/f77f005139d39a1449c1c0625d892f63bcc5fa2a"}}}}
{"actor":{"display_login":"andrewdacenko"}}