{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/comments/158263629","pull_request_review_id":85045389,"id":158263629,"diff_hunk":"@@ -30,7 +30,7 @@\n       if (xhr.status === 200) {\n         onLoad(xhr.response);\n       } else {\n-        onError(ErrorCodes[xhr.status]);\n+        onError(ErrorCodes[xhr.status] || 'Неизвестная ошибка');","path":"js/backend.js","position":5,"original_position":5,"commit_id":"3c258392f69138596952eadd4a8f9d757d87da44","original_commit_id":"3c258392f69138596952eadd4a8f9d757d87da44","user":{"login":"Ge11ert","id":22282247,"avatar_url":"https://avatars1.githubusercontent.com/u/22282247?v=4","gravatar_id":"","url":"https://api.github.com/users/Ge11ert","html_url":"https://github.com/Ge11ert","followers_url":"https://api.github.com/users/Ge11ert/followers","following_url":"https://api.github.com/users/Ge11ert/following{/other_user}","gists_url":"https://api.github.com/users/Ge11ert/gists{/gist_id}","starred_url":"https://api.github.com/users/Ge11ert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ge11ert/subscriptions","organizations_url":"https://api.github.com/users/Ge11ert/orgs","repos_url":"https://api.github.com/users/Ge11ert/repos","events_url":"https://api.github.com/users/Ge11ert/events{/privacy}","received_events_url":"https://api.github.com/users/Ge11ert/received_events","type":"User","site_admin":false},"body":"А отправку файлов на сервер нужно делать сразу вместе с отправкой полей формы (в одном xhr) или можно отдельным запросом?","created_at":"2017-12-21T12:18:15Z","updated_at":"2017-12-21T12:18:15Z","html_url":"https://github.com/htmlacademy-javascript/262023-keksobooking/pull/10#discussion_r158263629","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/10","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/comments/158263629"},"html":{"href":"https://github.com/htmlacademy-javascript/262023-keksobooking/pull/10#discussion_r158263629"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/10"}},"in_reply_to_id":158227248},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/10","id":159532776,"html_url":"https://github.com/htmlacademy-javascript/262023-keksobooking/pull/10","diff_url":"https://github.com/htmlacademy-javascript/262023-keksobooking/pull/10.diff","patch_url":"https://github.com/htmlacademy-javascript/262023-keksobooking/pull/10.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/issues/10","number":10,"state":"open","locked":false,"title":"Личный проект: шэр, лайк (необязательное задание)","user":{"login":"Ge11ert","id":22282247,"avatar_url":"https://avatars1.githubusercontent.com/u/22282247?v=4","gravatar_id":"","url":"https://api.github.com/users/Ge11ert","html_url":"https://github.com/Ge11ert","followers_url":"https://api.github.com/users/Ge11ert/followers","following_url":"https://api.github.com/users/Ge11ert/following{/other_user}","gists_url":"https://api.github.com/users/Ge11ert/gists{/gist_id}","starred_url":"https://api.github.com/users/Ge11ert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ge11ert/subscriptions","organizations_url":"https://api.github.com/users/Ge11ert/orgs","repos_url":"https://api.github.com/users/Ge11ert/repos","events_url":"https://api.github.com/users/Ge11ert/events{/privacy}","received_events_url":"https://api.github.com/users/Ge11ert/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: шэр, лайк (необязательное задание)](https://up.htmlacademy.ru/javascript/11/user/262023/tasks/26)\n\n:boom: https://htmlacademy-javascript.github.io/262023-keksobooking/10/","created_at":"2017-12-20T22:27:23Z","updated_at":"2017-12-21T12:18:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"816530b2710c7583d7096764a8ff8447e9038e3c","assignee":{"login":"fyvfyv","id":3251438,"avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false},"assignees":[{"login":"fyvfyv","id":3251438,"avatar_url":"https://avatars2.githubusercontent.com/u/3251438?v=4","gravatar_id":"","url":"https://api.github.com/users/fyvfyv","html_url":"https://github.com/fyvfyv","followers_url":"https://api.github.com/users/fyvfyv/followers","following_url":"https://api.github.com/users/fyvfyv/following{/other_user}","gists_url":"https://api.github.com/users/fyvfyv/gists{/gist_id}","starred_url":"https://api.github.com/users/fyvfyv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fyvfyv/subscriptions","organizations_url":"https://api.github.com/users/fyvfyv/orgs","repos_url":"https://api.github.com/users/fyvfyv/repos","events_url":"https://api.github.com/users/fyvfyv/events{/privacy}","received_events_url":"https://api.github.com/users/fyvfyv/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/10/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/10/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/issues/10/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/statuses/3c258392f69138596952eadd4a8f9d757d87da44","head":{"label":"Ge11ert:module9-task1","ref":"module9-task1","sha":"3c258392f69138596952eadd4a8f9d757d87da44","user":{"login":"Ge11ert","id":22282247,"avatar_url":"https://avatars1.githubusercontent.com/u/22282247?v=4","gravatar_id":"","url":"https://api.github.com/users/Ge11ert","html_url":"https://github.com/Ge11ert","followers_url":"https://api.github.com/users/Ge11ert/followers","following_url":"https://api.github.com/users/Ge11ert/following{/other_user}","gists_url":"https://api.github.com/users/Ge11ert/gists{/gist_id}","starred_url":"https://api.github.com/users/Ge11ert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ge11ert/subscriptions","organizations_url":"https://api.github.com/users/Ge11ert/orgs","repos_url":"https://api.github.com/users/Ge11ert/repos","events_url":"https://api.github.com/users/Ge11ert/events{/privacy}","received_events_url":"https://api.github.com/users/Ge11ert/received_events","type":"User","site_admin":false},"repo":{"id":110733247,"name":"262023-keksobooking","full_name":"Ge11ert/262023-keksobooking","owner":{"login":"Ge11ert","id":22282247,"avatar_url":"https://avatars1.githubusercontent.com/u/22282247?v=4","gravatar_id":"","url":"https://api.github.com/users/Ge11ert","html_url":"https://github.com/Ge11ert","followers_url":"https://api.github.com/users/Ge11ert/followers","following_url":"https://api.github.com/users/Ge11ert/following{/other_user}","gists_url":"https://api.github.com/users/Ge11ert/gists{/gist_id}","starred_url":"https://api.github.com/users/Ge11ert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ge11ert/subscriptions","organizations_url":"https://api.github.com/users/Ge11ert/orgs","repos_url":"https://api.github.com/users/Ge11ert/repos","events_url":"https://api.github.com/users/Ge11ert/events{/privacy}","received_events_url":"https://api.github.com/users/Ge11ert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ge11ert/262023-keksobooking","description":"Артём Абрамянц","fork":true,"url":"https://api.github.com/repos/Ge11ert/262023-keksobooking","forks_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/forks","keys_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/teams","hooks_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/events","assignees_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/tags","blobs_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/languages","stargazers_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/subscription","commits_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/merges","archive_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/downloads","issues_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/Ge11ert/262023-keksobooking/deployments","created_at":"2017-11-14T19:11:55Z","updated_at":"2017-12-01T20:44:53Z","pushed_at":"2017-12-20T22:25:49Z","git_url":"git://github.com/Ge11ert/262023-keksobooking.git","ssh_url":"git@github.com:Ge11ert/262023-keksobooking.git","clone_url":"https://github.com/Ge11ert/262023-keksobooking.git","svn_url":"https://github.com/Ge11ert/262023-keksobooking","homepage":null,"size":2289,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"dd6632a77bcfe78eb6fe6e0e73b26d7727efa3b7","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":110732503,"name":"262023-keksobooking","full_name":"htmlacademy-javascript/262023-keksobooking","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/262023-keksobooking","description":"Артём Абрамянц","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking","forks_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/deployments","created_at":"2017-11-14T19:05:14Z","updated_at":"2017-12-01T16:06:24Z","pushed_at":"2017-12-20T22:28:52Z","git_url":"git://github.com/htmlacademy-javascript/262023-keksobooking.git","ssh_url":"git@github.com:htmlacademy-javascript/262023-keksobooking.git","clone_url":"https://github.com/htmlacademy-javascript/262023-keksobooking.git","svn_url":"https://github.com/htmlacademy-javascript/262023-keksobooking","homepage":"https://github.com/Ge11ert/262023-keksobooking","size":2337,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/10"},"html":{"href":"https://github.com/htmlacademy-javascript/262023-keksobooking/pull/10"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/issues/10"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/262023-keksobooking/statuses/3c258392f69138596952eadd4a8f9d757d87da44"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Ge11ert"}}