{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/team1/pulls/comments/63829222","id":63829222,"diff_hunk":"@@ -10,6 +10,11 @@ router.get('/', function (req, res) {\n             if (err) {\n                 console.log(err);\n             } else {\n+                quests.forEach(quest => {\n+                    quest._doc.isLiked = req.user && quest","path":"routes/questList.js","position":5,"original_position":5,"commit_id":"6a794e965a5c2c0a01915517447ee8db70a1dde2","original_commit_id":"6a794e965a5c2c0a01915517447ee8db70a1dde2","user":{"login":"NikShel","id":11533472,"avatar_url":"https://avatars.githubusercontent.com/u/11533472?v=3","gravatar_id":"","url":"https://api.github.com/users/NikShel","html_url":"https://github.com/NikShel","followers_url":"https://api.github.com/users/NikShel/followers","following_url":"https://api.github.com/users/NikShel/following{/other_user}","gists_url":"https://api.github.com/users/NikShel/gists{/gist_id}","starred_url":"https://api.github.com/users/NikShel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikShel/subscriptions","organizations_url":"https://api.github.com/users/NikShel/orgs","repos_url":"https://api.github.com/users/NikShel/repos","events_url":"https://api.github.com/users/NikShel/events{/privacy}","received_events_url":"https://api.github.com/users/NikShel/received_events","type":"User","site_admin":false},"body":"Работает?","created_at":"2016-05-19T06:44:01Z","updated_at":"2016-05-19T06:44:01Z","html_url":"https://github.com/urfu-2015/team1/pull/53#discussion_r63829222","pull_request_url":"https://api.github.com/repos/urfu-2015/team1/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/team1/pulls/comments/63829222"},"html":{"href":"https://github.com/urfu-2015/team1/pull/53#discussion_r63829222"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/team1/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/team1/pulls/53","id":70639344,"html_url":"https://github.com/urfu-2015/team1/pull/53","diff_url":"https://github.com/urfu-2015/team1/pull/53.diff","patch_url":"https://github.com/urfu-2015/team1/pull/53.patch","issue_url":"https://api.github.com/repos/urfu-2015/team1/issues/53","number":53,"state":"open","locked":false,"title":"likes for quest","user":{"login":"mironov-alexey","id":6783167,"avatar_url":"https://avatars.githubusercontent.com/u/6783167?v=3","gravatar_id":"","url":"https://api.github.com/users/mironov-alexey","html_url":"https://github.com/mironov-alexey","followers_url":"https://api.github.com/users/mironov-alexey/followers","following_url":"https://api.github.com/users/mironov-alexey/following{/other_user}","gists_url":"https://api.github.com/users/mironov-alexey/gists{/gist_id}","starred_url":"https://api.github.com/users/mironov-alexey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mironov-alexey/subscriptions","organizations_url":"https://api.github.com/users/mironov-alexey/orgs","repos_url":"https://api.github.com/users/mironov-alexey/repos","events_url":"https://api.github.com/users/mironov-alexey/events{/privacy}","received_events_url":"https://api.github.com/users/mironov-alexey/received_events","type":"User","site_admin":false},"body":"Велосипеды, костыли, лойсы. Отображение поставленного пользователем лойса сохраняется при перезагрузке страницы (б-же какой там костылище, если придумаете как лучше -- скажите)\r\nТак же в процессе тыканья лойсов наткнулся на кейс, приводящий к ошибке)))))000)0\r\n* неавторизованный пользователь тыкает лойсы (естественно ничего не происходит)\r\n* он идёт в форму авторизации, авторизуется\r\n* ииии его кидает сюда (внимание на url) \r\n![image](https://cloud.githubusercontent.com/assets/6783167/15383745/c12f3558-1dae-11e6-852b-f2ac28d18a03.png)\r\n","created_at":"2016-05-19T05:45:22Z","updated_at":"2016-05-19T06:44:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"869628aaaca4db25e195892d7a7339c49a9e4523","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/team1/pulls/53/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/team1/pulls/53/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/team1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/team1/issues/53/comments","statuses_url":"https://api.github.com/repos/urfu-2015/team1/statuses/6a794e965a5c2c0a01915517447ee8db70a1dde2","head":{"label":"mironov-alexey:master","ref":"master","sha":"6a794e965a5c2c0a01915517447ee8db70a1dde2","user":{"login":"mironov-alexey","id":6783167,"avatar_url":"https://avatars.githubusercontent.com/u/6783167?v=3","gravatar_id":"","url":"https://api.github.com/users/mironov-alexey","html_url":"https://github.com/mironov-alexey","followers_url":"https://api.github.com/users/mironov-alexey/followers","following_url":"https://api.github.com/users/mironov-alexey/following{/other_user}","gists_url":"https://api.github.com/users/mironov-alexey/gists{/gist_id}","starred_url":"https://api.github.com/users/mironov-alexey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mironov-alexey/subscriptions","organizations_url":"https://api.github.com/users/mironov-alexey/orgs","repos_url":"https://api.github.com/users/mironov-alexey/repos","events_url":"https://api.github.com/users/mironov-alexey/events{/privacy}","received_events_url":"https://api.github.com/users/mironov-alexey/received_events","type":"User","site_admin":false},"repo":{"id":53771414,"name":"team1","full_name":"mironov-alexey/team1","owner":{"login":"mironov-alexey","id":6783167,"avatar_url":"https://avatars.githubusercontent.com/u/6783167?v=3","gravatar_id":"","url":"https://api.github.com/users/mironov-alexey","html_url":"https://github.com/mironov-alexey","followers_url":"https://api.github.com/users/mironov-alexey/followers","following_url":"https://api.github.com/users/mironov-alexey/following{/other_user}","gists_url":"https://api.github.com/users/mironov-alexey/gists{/gist_id}","starred_url":"https://api.github.com/users/mironov-alexey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mironov-alexey/subscriptions","organizations_url":"https://api.github.com/users/mironov-alexey/orgs","repos_url":"https://api.github.com/users/mironov-alexey/repos","events_url":"https://api.github.com/users/mironov-alexey/events{/privacy}","received_events_url":"https://api.github.com/users/mironov-alexey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mironov-alexey/team1","description":"","fork":true,"url":"https://api.github.com/repos/mironov-alexey/team1","forks_url":"https://api.github.com/repos/mironov-alexey/team1/forks","keys_url":"https://api.github.com/repos/mironov-alexey/team1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mironov-alexey/team1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mironov-alexey/team1/teams","hooks_url":"https://api.github.com/repos/mironov-alexey/team1/hooks","issue_events_url":"https://api.github.com/repos/mironov-alexey/team1/issues/events{/number}","events_url":"https://api.github.com/repos/mironov-alexey/team1/events","assignees_url":"https://api.github.com/repos/mironov-alexey/team1/assignees{/user}","branches_url":"https://api.github.com/repos/mironov-alexey/team1/branches{/branch}","tags_url":"https://api.github.com/repos/mironov-alexey/team1/tags","blobs_url":"https://api.github.com/repos/mironov-alexey/team1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mironov-alexey/team1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mironov-alexey/team1/git/refs{/sha}","trees_url":"https://api.github.com/repos/mironov-alexey/team1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mironov-alexey/team1/statuses/{sha}","languages_url":"https://api.github.com/repos/mironov-alexey/team1/languages","stargazers_url":"https://api.github.com/repos/mironov-alexey/team1/stargazers","contributors_url":"https://api.github.com/repos/mironov-alexey/team1/contributors","subscribers_url":"https://api.github.com/repos/mironov-alexey/team1/subscribers","subscription_url":"https://api.github.com/repos/mironov-alexey/team1/subscription","commits_url":"https://api.github.com/repos/mironov-alexey/team1/commits{/sha}","git_commits_url":"https://api.github.com/repos/mironov-alexey/team1/git/commits{/sha}","comments_url":"https://api.github.com/repos/mironov-alexey/team1/comments{/number}","issue_comment_url":"https://api.github.com/repos/mironov-alexey/team1/issues/comments{/number}","contents_url":"https://api.github.com/repos/mironov-alexey/team1/contents/{+path}","compare_url":"https://api.github.com/repos/mironov-alexey/team1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mironov-alexey/team1/merges","archive_url":"https://api.github.com/repos/mironov-alexey/team1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mironov-alexey/team1/downloads","issues_url":"https://api.github.com/repos/mironov-alexey/team1/issues{/number}","pulls_url":"https://api.github.com/repos/mironov-alexey/team1/pulls{/number}","milestones_url":"https://api.github.com/repos/mironov-alexey/team1/milestones{/number}","notifications_url":"https://api.github.com/repos/mironov-alexey/team1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mironov-alexey/team1/labels{/name}","releases_url":"https://api.github.com/repos/mironov-alexey/team1/releases{/id}","deployments_url":"https://api.github.com/repos/mironov-alexey/team1/deployments","created_at":"2016-03-13T06:45:51Z","updated_at":"2016-03-13T06:45:53Z","pushed_at":"2016-05-19T05:35:12Z","git_url":"git://github.com/mironov-alexey/team1.git","ssh_url":"git@github.com:mironov-alexey/team1.git","clone_url":"https://github.com/mironov-alexey/team1.git","svn_url":"https://github.com/mironov-alexey/team1","homepage":null,"size":115,"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":"urfu-2015:master","ref":"master","sha":"406d0c084e173adede2b5ed7e8045b050b1f0040","user":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":53662468,"name":"team1","full_name":"urfu-2015/team1","owner":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2015/team1","description":"","fork":false,"url":"https://api.github.com/repos/urfu-2015/team1","forks_url":"https://api.github.com/repos/urfu-2015/team1/forks","keys_url":"https://api.github.com/repos/urfu-2015/team1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/team1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/team1/teams","hooks_url":"https://api.github.com/repos/urfu-2015/team1/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/team1/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/team1/events","assignees_url":"https://api.github.com/repos/urfu-2015/team1/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/team1/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/team1/tags","blobs_url":"https://api.github.com/repos/urfu-2015/team1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/team1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/team1/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/team1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/team1/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/team1/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/team1/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/team1/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/team1/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/team1/subscription","commits_url":"https://api.github.com/repos/urfu-2015/team1/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/team1/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/team1/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/team1/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/team1/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/team1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/team1/merges","archive_url":"https://api.github.com/repos/urfu-2015/team1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/team1/downloads","issues_url":"https://api.github.com/repos/urfu-2015/team1/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/team1/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/team1/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/team1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/team1/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/team1/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2015/team1/deployments","created_at":"2016-03-11T11:26:45Z","updated_at":"2016-03-13T06:15:23Z","pushed_at":"2016-05-19T05:45:22Z","git_url":"git://github.com/urfu-2015/team1.git","ssh_url":"git@github.com:urfu-2015/team1.git","clone_url":"https://github.com/urfu-2015/team1.git","svn_url":"https://github.com/urfu-2015/team1","homepage":null,"size":130,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":4,"forks":8,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/team1/pulls/53"},"html":{"href":"https://github.com/urfu-2015/team1/pull/53"},"issue":{"href":"https://api.github.com/repos/urfu-2015/team1/issues/53"},"comments":{"href":"https://api.github.com/repos/urfu-2015/team1/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/team1/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/team1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/team1/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/team1/statuses/6a794e965a5c2c0a01915517447ee8db70a1dde2"}}}}