{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fask/pulls/comments/132877841","pull_request_review_id":56000145,"id":132877841,"diff_hunk":"@@ -1,10 +1,10 @@\n class PostsController < ApplicationController\n   before_action :check_user, only: :create\n+  before_action :load_post, only: :show\n \n   def index\n    if params[:query].present?\n-     @posts = Post.search params[:query],  page: params[:page],\n-       per_page: Settings.paginate_default\n+     @posts = Post.search params[:query],  page: params[:page]","path":"app/controllers/posts_controller.rb","position":9,"original_position":9,"commit_id":"2e3b8663598e96c452f9895c3af4d0efe2491509","original_commit_id":"2e3b8663598e96c452f9895c3af4d0efe2491509","user":{"login":"tranducquoc","id":17246945,"avatar_url":"https://avatars3.githubusercontent.com/u/17246945?v=4","gravatar_id":"","url":"https://api.github.com/users/tranducquoc","html_url":"https://github.com/tranducquoc","followers_url":"https://api.github.com/users/tranducquoc/followers","following_url":"https://api.github.com/users/tranducquoc/following{/other_user}","gists_url":"https://api.github.com/users/tranducquoc/gists{/gist_id}","starred_url":"https://api.github.com/users/tranducquoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranducquoc/subscriptions","organizations_url":"https://api.github.com/users/tranducquoc/orgs","repos_url":"https://api.github.com/users/tranducquoc/repos","events_url":"https://api.github.com/users/tranducquoc/events{/privacy}","received_events_url":"https://api.github.com/users/tranducquoc/received_events","type":"User","site_admin":false},"body":"sau dấu , 1 space thôi","created_at":"2017-08-14T05:56:01Z","updated_at":"2017-08-14T06:00:33Z","html_url":"https://github.com/framgia/fask/pull/29#discussion_r132877841","pull_request_url":"https://api.github.com/repos/framgia/fask/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/framgia/fask/pulls/comments/132877841"},"html":{"href":"https://github.com/framgia/fask/pull/29#discussion_r132877841"},"pull_request":{"href":"https://api.github.com/repos/framgia/fask/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fask/pulls/29","id":135089985,"html_url":"https://github.com/framgia/fask/pull/29","diff_url":"https://github.com/framgia/fask/pull/29.diff","patch_url":"https://github.com/framgia/fask/pull/29.patch","issue_url":"https://api.github.com/repos/framgia/fask/issues/29","number":29,"state":"open","locked":false,"title":"Show detail question","user":{"login":"hoquochai","id":13618718,"avatar_url":"https://avatars1.githubusercontent.com/u/13618718?v=4","gravatar_id":"","url":"https://api.github.com/users/hoquochai","html_url":"https://github.com/hoquochai","followers_url":"https://api.github.com/users/hoquochai/followers","following_url":"https://api.github.com/users/hoquochai/following{/other_user}","gists_url":"https://api.github.com/users/hoquochai/gists{/gist_id}","starred_url":"https://api.github.com/users/hoquochai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoquochai/subscriptions","organizations_url":"https://api.github.com/users/hoquochai/orgs","repos_url":"https://api.github.com/users/hoquochai/repos","events_url":"https://api.github.com/users/hoquochai/events{/privacy}","received_events_url":"https://api.github.com/users/hoquochai/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-10T10:22:06Z","updated_at":"2017-08-14T06:00:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c43ff329baa38215767ed1e772773272f9b08bc","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fask/pulls/29/commits","review_comments_url":"https://api.github.com/repos/framgia/fask/pulls/29/comments","review_comment_url":"https://api.github.com/repos/framgia/fask/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fask/issues/29/comments","statuses_url":"https://api.github.com/repos/framgia/fask/statuses/2e3b8663598e96c452f9895c3af4d0efe2491509","head":{"label":"hoquochai:detail_post","ref":"detail_post","sha":"2e3b8663598e96c452f9895c3af4d0efe2491509","user":{"login":"hoquochai","id":13618718,"avatar_url":"https://avatars1.githubusercontent.com/u/13618718?v=4","gravatar_id":"","url":"https://api.github.com/users/hoquochai","html_url":"https://github.com/hoquochai","followers_url":"https://api.github.com/users/hoquochai/followers","following_url":"https://api.github.com/users/hoquochai/following{/other_user}","gists_url":"https://api.github.com/users/hoquochai/gists{/gist_id}","starred_url":"https://api.github.com/users/hoquochai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoquochai/subscriptions","organizations_url":"https://api.github.com/users/hoquochai/orgs","repos_url":"https://api.github.com/users/hoquochai/repos","events_url":"https://api.github.com/users/hoquochai/events{/privacy}","received_events_url":"https://api.github.com/users/hoquochai/received_events","type":"User","site_admin":false},"repo":{"id":98844358,"name":"fask","full_name":"hoquochai/fask","owner":{"login":"hoquochai","id":13618718,"avatar_url":"https://avatars1.githubusercontent.com/u/13618718?v=4","gravatar_id":"","url":"https://api.github.com/users/hoquochai","html_url":"https://github.com/hoquochai","followers_url":"https://api.github.com/users/hoquochai/followers","following_url":"https://api.github.com/users/hoquochai/following{/other_user}","gists_url":"https://api.github.com/users/hoquochai/gists{/gist_id}","starred_url":"https://api.github.com/users/hoquochai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoquochai/subscriptions","organizations_url":"https://api.github.com/users/hoquochai/orgs","repos_url":"https://api.github.com/users/hoquochai/repos","events_url":"https://api.github.com/users/hoquochai/events{/privacy}","received_events_url":"https://api.github.com/users/hoquochai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hoquochai/fask","description":null,"fork":true,"url":"https://api.github.com/repos/hoquochai/fask","forks_url":"https://api.github.com/repos/hoquochai/fask/forks","keys_url":"https://api.github.com/repos/hoquochai/fask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoquochai/fask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoquochai/fask/teams","hooks_url":"https://api.github.com/repos/hoquochai/fask/hooks","issue_events_url":"https://api.github.com/repos/hoquochai/fask/issues/events{/number}","events_url":"https://api.github.com/repos/hoquochai/fask/events","assignees_url":"https://api.github.com/repos/hoquochai/fask/assignees{/user}","branches_url":"https://api.github.com/repos/hoquochai/fask/branches{/branch}","tags_url":"https://api.github.com/repos/hoquochai/fask/tags","blobs_url":"https://api.github.com/repos/hoquochai/fask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoquochai/fask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoquochai/fask/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoquochai/fask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoquochai/fask/statuses/{sha}","languages_url":"https://api.github.com/repos/hoquochai/fask/languages","stargazers_url":"https://api.github.com/repos/hoquochai/fask/stargazers","contributors_url":"https://api.github.com/repos/hoquochai/fask/contributors","subscribers_url":"https://api.github.com/repos/hoquochai/fask/subscribers","subscription_url":"https://api.github.com/repos/hoquochai/fask/subscription","commits_url":"https://api.github.com/repos/hoquochai/fask/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoquochai/fask/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoquochai/fask/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoquochai/fask/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoquochai/fask/contents/{+path}","compare_url":"https://api.github.com/repos/hoquochai/fask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoquochai/fask/merges","archive_url":"https://api.github.com/repos/hoquochai/fask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoquochai/fask/downloads","issues_url":"https://api.github.com/repos/hoquochai/fask/issues{/number}","pulls_url":"https://api.github.com/repos/hoquochai/fask/pulls{/number}","milestones_url":"https://api.github.com/repos/hoquochai/fask/milestones{/number}","notifications_url":"https://api.github.com/repos/hoquochai/fask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoquochai/fask/labels{/name}","releases_url":"https://api.github.com/repos/hoquochai/fask/releases{/id}","deployments_url":"https://api.github.com/repos/hoquochai/fask/deployments","created_at":"2017-07-31T03:27:06Z","updated_at":"2017-07-31T03:27:08Z","pushed_at":"2017-08-14T04:50:32Z","git_url":"git://github.com/hoquochai/fask.git","ssh_url":"git@github.com:hoquochai/fask.git","clone_url":"https://github.com/hoquochai/fask.git","svn_url":"https://github.com/hoquochai/fask","homepage":null,"size":3408,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"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":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"48279cae157878254638bf8e0bcb36a7fe75ae72","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":97179403,"name":"fask","full_name":"framgia/fask","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fask","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/fask","forks_url":"https://api.github.com/repos/framgia/fask/forks","keys_url":"https://api.github.com/repos/framgia/fask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fask/teams","hooks_url":"https://api.github.com/repos/framgia/fask/hooks","issue_events_url":"https://api.github.com/repos/framgia/fask/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fask/events","assignees_url":"https://api.github.com/repos/framgia/fask/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fask/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fask/tags","blobs_url":"https://api.github.com/repos/framgia/fask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fask/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fask/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fask/languages","stargazers_url":"https://api.github.com/repos/framgia/fask/stargazers","contributors_url":"https://api.github.com/repos/framgia/fask/contributors","subscribers_url":"https://api.github.com/repos/framgia/fask/subscribers","subscription_url":"https://api.github.com/repos/framgia/fask/subscription","commits_url":"https://api.github.com/repos/framgia/fask/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fask/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fask/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fask/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fask/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fask/merges","archive_url":"https://api.github.com/repos/framgia/fask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fask/downloads","issues_url":"https://api.github.com/repos/framgia/fask/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fask/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fask/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fask/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fask/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fask/deployments","created_at":"2017-07-14T01:24:15Z","updated_at":"2017-08-04T02:17:05Z","pushed_at":"2017-08-14T04:50:34Z","git_url":"git://github.com/framgia/fask.git","ssh_url":"git@github.com:framgia/fask.git","clone_url":"https://github.com/framgia/fask.git","svn_url":"https://github.com/framgia/fask","homepage":null,"size":3397,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fask/pulls/29"},"html":{"href":"https://github.com/framgia/fask/pull/29"},"issue":{"href":"https://api.github.com/repos/framgia/fask/issues/29"},"comments":{"href":"https://api.github.com/repos/framgia/fask/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fask/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fask/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fask/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fask/statuses/2e3b8663598e96c452f9895c3af4d0efe2491509"}}}}
{"actor":{"display_login":"tranducquoc"}}