{"action":"created","comment":{"url":"https://api.github.com/repos/PHPEducation/confession/pulls/comments/232151100","pull_request_review_id":173284459,"id":232151100,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjE1MTEwMA==","diff_hunk":"@@ -43,3 +43,218 @@ $('#title').on('keyup', function () {\n     //In slug ra textbox có id “slug”\n     document.getElementById('slug').value = slug;\n });\n+\n+function postComment(post_id) {\n+    var form = $('#comment_form_' + post_id);\n+    var formdata = form.serialize();\n+\n+    $.ajaxSetup({\n+        headers: {'X-CSRF-Token': $('meta[name=_token]').attr('content')}\n+    });\n+\n+    $.ajax({\n+        type: 'POST',\n+        url: route('comments.store'),\n+        data: formdata,\n+        success: function (res) {\n+            console.log(res);\n+            if (res.info.images == null) {\n+                $avatar = '/img/avatar-5.png';","path":"resources/js/user.js","position":20,"original_position":20,"commit_id":"4136807ae51304361e352b20500a04acae2c16ce","original_commit_id":"4136807ae51304361e352b20500a04acae2c16ce","user":{"login":"BunnyPi04","id":32006118,"node_id":"MDQ6VXNlcjMyMDA2MTE4","avatar_url":"https://avatars2.githubusercontent.com/u/32006118?v=4","gravatar_id":"","url":"https://api.github.com/users/BunnyPi04","html_url":"https://github.com/BunnyPi04","followers_url":"https://api.github.com/users/BunnyPi04/followers","following_url":"https://api.github.com/users/BunnyPi04/following{/other_user}","gists_url":"https://api.github.com/users/BunnyPi04/gists{/gist_id}","starred_url":"https://api.github.com/users/BunnyPi04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BunnyPi04/subscriptions","organizations_url":"https://api.github.com/users/BunnyPi04/orgs","repos_url":"https://api.github.com/users/BunnyPi04/repos","events_url":"https://api.github.com/users/BunnyPi04/events{/privacy}","received_events_url":"https://api.github.com/users/BunnyPi04/received_events","type":"User","site_admin":false},"body":"config đâu?","created_at":"2018-11-09T06:16:16Z","updated_at":"2018-11-09T06:17:08Z","html_url":"https://github.com/PHPEducation/confession/pull/18#discussion_r232151100","pull_request_url":"https://api.github.com/repos/PHPEducation/confession/pulls/18","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/PHPEducation/confession/pulls/comments/232151100"},"html":{"href":"https://github.com/PHPEducation/confession/pull/18#discussion_r232151100"},"pull_request":{"href":"https://api.github.com/repos/PHPEducation/confession/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/PHPEducation/confession/pulls/18","id":229300959,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MzAwOTU5","html_url":"https://github.com/PHPEducation/confession/pull/18","diff_url":"https://github.com/PHPEducation/confession/pull/18.diff","patch_url":"https://github.com/PHPEducation/confession/pull/18.patch","issue_url":"https://api.github.com/repos/PHPEducation/confession/issues/18","number":18,"state":"open","locked":false,"title":"like, comment, report","user":{"login":"NguyenCongViet","id":43327312,"node_id":"MDQ6VXNlcjQzMzI3MzEy","avatar_url":"https://avatars2.githubusercontent.com/u/43327312?v=4","gravatar_id":"","url":"https://api.github.com/users/NguyenCongViet","html_url":"https://github.com/NguyenCongViet","followers_url":"https://api.github.com/users/NguyenCongViet/followers","following_url":"https://api.github.com/users/NguyenCongViet/following{/other_user}","gists_url":"https://api.github.com/users/NguyenCongViet/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenCongViet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenCongViet/subscriptions","organizations_url":"https://api.github.com/users/NguyenCongViet/orgs","repos_url":"https://api.github.com/users/NguyenCongViet/repos","events_url":"https://api.github.com/users/NguyenCongViet/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenCongViet/received_events","type":"User","site_admin":false},"body":"ready","created_at":"2018-11-08T09:35:39Z","updated_at":"2018-11-09T06:17:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d98bc9a410f616a5e04694b1ebb28f24bb15cabc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PHPEducation/confession/pulls/18/commits","review_comments_url":"https://api.github.com/repos/PHPEducation/confession/pulls/18/comments","review_comment_url":"https://api.github.com/repos/PHPEducation/confession/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PHPEducation/confession/issues/18/comments","statuses_url":"https://api.github.com/repos/PHPEducation/confession/statuses/4136807ae51304361e352b20500a04acae2c16ce","head":{"label":"NguyenCongViet:viet-cfs","ref":"viet-cfs","sha":"4136807ae51304361e352b20500a04acae2c16ce","user":{"login":"NguyenCongViet","id":43327312,"node_id":"MDQ6VXNlcjQzMzI3MzEy","avatar_url":"https://avatars2.githubusercontent.com/u/43327312?v=4","gravatar_id":"","url":"https://api.github.com/users/NguyenCongViet","html_url":"https://github.com/NguyenCongViet","followers_url":"https://api.github.com/users/NguyenCongViet/followers","following_url":"https://api.github.com/users/NguyenCongViet/following{/other_user}","gists_url":"https://api.github.com/users/NguyenCongViet/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenCongViet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenCongViet/subscriptions","organizations_url":"https://api.github.com/users/NguyenCongViet/orgs","repos_url":"https://api.github.com/users/NguyenCongViet/repos","events_url":"https://api.github.com/users/NguyenCongViet/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenCongViet/received_events","type":"User","site_admin":false},"repo":{"id":155493742,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU0OTM3NDI=","name":"confession","full_name":"NguyenCongViet/confession","private":false,"owner":{"login":"NguyenCongViet","id":43327312,"node_id":"MDQ6VXNlcjQzMzI3MzEy","avatar_url":"https://avatars2.githubusercontent.com/u/43327312?v=4","gravatar_id":"","url":"https://api.github.com/users/NguyenCongViet","html_url":"https://github.com/NguyenCongViet","followers_url":"https://api.github.com/users/NguyenCongViet/followers","following_url":"https://api.github.com/users/NguyenCongViet/following{/other_user}","gists_url":"https://api.github.com/users/NguyenCongViet/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenCongViet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenCongViet/subscriptions","organizations_url":"https://api.github.com/users/NguyenCongViet/orgs","repos_url":"https://api.github.com/users/NguyenCongViet/repos","events_url":"https://api.github.com/users/NguyenCongViet/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenCongViet/received_events","type":"User","site_admin":false},"html_url":"https://github.com/NguyenCongViet/confession","description":null,"fork":true,"url":"https://api.github.com/repos/NguyenCongViet/confession","forks_url":"https://api.github.com/repos/NguyenCongViet/confession/forks","keys_url":"https://api.github.com/repos/NguyenCongViet/confession/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NguyenCongViet/confession/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NguyenCongViet/confession/teams","hooks_url":"https://api.github.com/repos/NguyenCongViet/confession/hooks","issue_events_url":"https://api.github.com/repos/NguyenCongViet/confession/issues/events{/number}","events_url":"https://api.github.com/repos/NguyenCongViet/confession/events","assignees_url":"https://api.github.com/repos/NguyenCongViet/confession/assignees{/user}","branches_url":"https://api.github.com/repos/NguyenCongViet/confession/branches{/branch}","tags_url":"https://api.github.com/repos/NguyenCongViet/confession/tags","blobs_url":"https://api.github.com/repos/NguyenCongViet/confession/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NguyenCongViet/confession/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NguyenCongViet/confession/git/refs{/sha}","trees_url":"https://api.github.com/repos/NguyenCongViet/confession/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NguyenCongViet/confession/statuses/{sha}","languages_url":"https://api.github.com/repos/NguyenCongViet/confession/languages","stargazers_url":"https://api.github.com/repos/NguyenCongViet/confession/stargazers","contributors_url":"https://api.github.com/repos/NguyenCongViet/confession/contributors","subscribers_url":"https://api.github.com/repos/NguyenCongViet/confession/subscribers","subscription_url":"https://api.github.com/repos/NguyenCongViet/confession/subscription","commits_url":"https://api.github.com/repos/NguyenCongViet/confession/commits{/sha}","git_commits_url":"https://api.github.com/repos/NguyenCongViet/confession/git/commits{/sha}","comments_url":"https://api.github.com/repos/NguyenCongViet/confession/comments{/number}","issue_comment_url":"https://api.github.com/repos/NguyenCongViet/confession/issues/comments{/number}","contents_url":"https://api.github.com/repos/NguyenCongViet/confession/contents/{+path}","compare_url":"https://api.github.com/repos/NguyenCongViet/confession/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NguyenCongViet/confession/merges","archive_url":"https://api.github.com/repos/NguyenCongViet/confession/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NguyenCongViet/confession/downloads","issues_url":"https://api.github.com/repos/NguyenCongViet/confession/issues{/number}","pulls_url":"https://api.github.com/repos/NguyenCongViet/confession/pulls{/number}","milestones_url":"https://api.github.com/repos/NguyenCongViet/confession/milestones{/number}","notifications_url":"https://api.github.com/repos/NguyenCongViet/confession/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NguyenCongViet/confession/labels{/name}","releases_url":"https://api.github.com/repos/NguyenCongViet/confession/releases{/id}","deployments_url":"https://api.github.com/repos/NguyenCongViet/confession/deployments","created_at":"2018-10-31T03:33:46Z","updated_at":"2018-11-05T01:56:17Z","pushed_at":"2018-11-09T04:07:58Z","git_url":"git://github.com/NguyenCongViet/confession.git","ssh_url":"git@github.com:NguyenCongViet/confession.git","clone_url":"https://github.com/NguyenCongViet/confession.git","svn_url":"https://github.com/NguyenCongViet/confession","homepage":null,"size":670,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"PHPEducation:master","ref":"master","sha":"f62d2f164e51c14394973bd2aa1d97efc8f13ffc","user":{"login":"PHPEducation","id":41612083,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNjEyMDgz","avatar_url":"https://avatars3.githubusercontent.com/u/41612083?v=4","gravatar_id":"","url":"https://api.github.com/users/PHPEducation","html_url":"https://github.com/PHPEducation","followers_url":"https://api.github.com/users/PHPEducation/followers","following_url":"https://api.github.com/users/PHPEducation/following{/other_user}","gists_url":"https://api.github.com/users/PHPEducation/gists{/gist_id}","starred_url":"https://api.github.com/users/PHPEducation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PHPEducation/subscriptions","organizations_url":"https://api.github.com/users/PHPEducation/orgs","repos_url":"https://api.github.com/users/PHPEducation/repos","events_url":"https://api.github.com/users/PHPEducation/events{/privacy}","received_events_url":"https://api.github.com/users/PHPEducation/received_events","type":"Organization","site_admin":false},"repo":{"id":147600569,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc2MDA1Njk=","name":"confession","full_name":"PHPEducation/confession","private":false,"owner":{"login":"PHPEducation","id":41612083,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNjEyMDgz","avatar_url":"https://avatars3.githubusercontent.com/u/41612083?v=4","gravatar_id":"","url":"https://api.github.com/users/PHPEducation","html_url":"https://github.com/PHPEducation","followers_url":"https://api.github.com/users/PHPEducation/followers","following_url":"https://api.github.com/users/PHPEducation/following{/other_user}","gists_url":"https://api.github.com/users/PHPEducation/gists{/gist_id}","starred_url":"https://api.github.com/users/PHPEducation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PHPEducation/subscriptions","organizations_url":"https://api.github.com/users/PHPEducation/orgs","repos_url":"https://api.github.com/users/PHPEducation/repos","events_url":"https://api.github.com/users/PHPEducation/events{/privacy}","received_events_url":"https://api.github.com/users/PHPEducation/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/PHPEducation/confession","description":null,"fork":false,"url":"https://api.github.com/repos/PHPEducation/confession","forks_url":"https://api.github.com/repos/PHPEducation/confession/forks","keys_url":"https://api.github.com/repos/PHPEducation/confession/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PHPEducation/confession/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PHPEducation/confession/teams","hooks_url":"https://api.github.com/repos/PHPEducation/confession/hooks","issue_events_url":"https://api.github.com/repos/PHPEducation/confession/issues/events{/number}","events_url":"https://api.github.com/repos/PHPEducation/confession/events","assignees_url":"https://api.github.com/repos/PHPEducation/confession/assignees{/user}","branches_url":"https://api.github.com/repos/PHPEducation/confession/branches{/branch}","tags_url":"https://api.github.com/repos/PHPEducation/confession/tags","blobs_url":"https://api.github.com/repos/PHPEducation/confession/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PHPEducation/confession/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PHPEducation/confession/git/refs{/sha}","trees_url":"https://api.github.com/repos/PHPEducation/confession/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PHPEducation/confession/statuses/{sha}","languages_url":"https://api.github.com/repos/PHPEducation/confession/languages","stargazers_url":"https://api.github.com/repos/PHPEducation/confession/stargazers","contributors_url":"https://api.github.com/repos/PHPEducation/confession/contributors","subscribers_url":"https://api.github.com/repos/PHPEducation/confession/subscribers","subscription_url":"https://api.github.com/repos/PHPEducation/confession/subscription","commits_url":"https://api.github.com/repos/PHPEducation/confession/commits{/sha}","git_commits_url":"https://api.github.com/repos/PHPEducation/confession/git/commits{/sha}","comments_url":"https://api.github.com/repos/PHPEducation/confession/comments{/number}","issue_comment_url":"https://api.github.com/repos/PHPEducation/confession/issues/comments{/number}","contents_url":"https://api.github.com/repos/PHPEducation/confession/contents/{+path}","compare_url":"https://api.github.com/repos/PHPEducation/confession/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PHPEducation/confession/merges","archive_url":"https://api.github.com/repos/PHPEducation/confession/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PHPEducation/confession/downloads","issues_url":"https://api.github.com/repos/PHPEducation/confession/issues{/number}","pulls_url":"https://api.github.com/repos/PHPEducation/confession/pulls{/number}","milestones_url":"https://api.github.com/repos/PHPEducation/confession/milestones{/number}","notifications_url":"https://api.github.com/repos/PHPEducation/confession/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PHPEducation/confession/labels{/name}","releases_url":"https://api.github.com/repos/PHPEducation/confession/releases{/id}","deployments_url":"https://api.github.com/repos/PHPEducation/confession/deployments","created_at":"2018-09-06T01:31:22Z","updated_at":"2018-11-08T06:08:02Z","pushed_at":"2018-11-09T06:09:00Z","git_url":"git://github.com/PHPEducation/confession.git","ssh_url":"git@github.com:PHPEducation/confession.git","clone_url":"https://github.com/PHPEducation/confession.git","svn_url":"https://github.com/PHPEducation/confession","homepage":null,"size":679,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PHPEducation/confession/pulls/18"},"html":{"href":"https://github.com/PHPEducation/confession/pull/18"},"issue":{"href":"https://api.github.com/repos/PHPEducation/confession/issues/18"},"comments":{"href":"https://api.github.com/repos/PHPEducation/confession/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/PHPEducation/confession/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/PHPEducation/confession/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PHPEducation/confession/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/PHPEducation/confession/statuses/4136807ae51304361e352b20500a04acae2c16ce"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"BunnyPi04"}}