{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_87/pulls/comments/45440005","id":45440005,"diff_hunk":"@@ -1,4 +1,7 @@\n class StaticPagesController < ApplicationController\n   def home\n+    if logged_in?\n+      @feed_items = current_user.feed.paginate(page: params[:page])","path":"app/controllers/static_pages_controller.rb","position":4,"original_position":4,"commit_id":"eb072fe87d44899c3937b5f543a1bab63bf1f676","original_commit_id":"eb072fe87d44899c3937b5f543a1bab63bf1f676","user":{"login":"chuanhtuan","id":5590771,"avatar_url":"https://avatars.githubusercontent.com/u/5590771?v=3","gravatar_id":"","url":"https://api.github.com/users/chuanhtuan","html_url":"https://github.com/chuanhtuan","followers_url":"https://api.github.com/users/chuanhtuan/followers","following_url":"https://api.github.com/users/chuanhtuan/following{/other_user}","gists_url":"https://api.github.com/users/chuanhtuan/gists{/gist_id}","starred_url":"https://api.github.com/users/chuanhtuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuanhtuan/subscriptions","organizations_url":"https://api.github.com/users/chuanhtuan/orgs","repos_url":"https://api.github.com/users/chuanhtuan/repos","events_url":"https://api.github.com/users/chuanhtuan/events{/privacy}","received_events_url":"https://api.github.com/users/chuanhtuan/received_events","type":"User","site_admin":false},"body":"()","created_at":"2015-11-20T06:43:39Z","updated_at":"2015-11-20T06:43:39Z","html_url":"https://github.com/framgia/fels_87/pull/15#discussion_r45440005","pull_request_url":"https://api.github.com/repos/framgia/fels_87/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_87/pulls/comments/45440005"},"html":{"href":"https://github.com/framgia/fels_87/pull/15#discussion_r45440005"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_87/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_87/pulls/15","id":51321075,"html_url":"https://github.com/framgia/fels_87/pull/15","diff_url":"https://github.com/framgia/fels_87/pull/15.diff","patch_url":"https://github.com/framgia/fels_87/pull/15.patch","issue_url":"https://api.github.com/repos/framgia/fels_87/issues/15","number":15,"state":"open","locked":false,"title":"Add feed of following users","user":{"login":"rofiuddin","id":14918773,"avatar_url":"https://avatars.githubusercontent.com/u/14918773?v=3","gravatar_id":"","url":"https://api.github.com/users/rofiuddin","html_url":"https://github.com/rofiuddin","followers_url":"https://api.github.com/users/rofiuddin/followers","following_url":"https://api.github.com/users/rofiuddin/following{/other_user}","gists_url":"https://api.github.com/users/rofiuddin/gists{/gist_id}","starred_url":"https://api.github.com/users/rofiuddin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rofiuddin/subscriptions","organizations_url":"https://api.github.com/users/rofiuddin/orgs","repos_url":"https://api.github.com/users/rofiuddin/repos","events_url":"https://api.github.com/users/rofiuddin/events{/privacy}","received_events_url":"https://api.github.com/users/rofiuddin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-20T06:05:24Z","updated_at":"2015-11-20T06:43:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"778ed740f5ad3a62dc4c91e661ce89fe37f5b519","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_87/pulls/15/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_87/pulls/15/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_87/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_87/issues/15/comments","statuses_url":"https://api.github.com/repos/framgia/fels_87/statuses/eb072fe87d44899c3937b5f543a1bab63bf1f676","head":{"label":"rofiuddin:45657_add_following_users_feed","ref":"45657_add_following_users_feed","sha":"eb072fe87d44899c3937b5f543a1bab63bf1f676","user":{"login":"rofiuddin","id":14918773,"avatar_url":"https://avatars.githubusercontent.com/u/14918773?v=3","gravatar_id":"","url":"https://api.github.com/users/rofiuddin","html_url":"https://github.com/rofiuddin","followers_url":"https://api.github.com/users/rofiuddin/followers","following_url":"https://api.github.com/users/rofiuddin/following{/other_user}","gists_url":"https://api.github.com/users/rofiuddin/gists{/gist_id}","starred_url":"https://api.github.com/users/rofiuddin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rofiuddin/subscriptions","organizations_url":"https://api.github.com/users/rofiuddin/orgs","repos_url":"https://api.github.com/users/rofiuddin/repos","events_url":"https://api.github.com/users/rofiuddin/events{/privacy}","received_events_url":"https://api.github.com/users/rofiuddin/received_events","type":"User","site_admin":false},"repo":{"id":45514376,"name":"fels_87","full_name":"rofiuddin/fels_87","owner":{"login":"rofiuddin","id":14918773,"avatar_url":"https://avatars.githubusercontent.com/u/14918773?v=3","gravatar_id":"","url":"https://api.github.com/users/rofiuddin","html_url":"https://github.com/rofiuddin","followers_url":"https://api.github.com/users/rofiuddin/followers","following_url":"https://api.github.com/users/rofiuddin/following{/other_user}","gists_url":"https://api.github.com/users/rofiuddin/gists{/gist_id}","starred_url":"https://api.github.com/users/rofiuddin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rofiuddin/subscriptions","organizations_url":"https://api.github.com/users/rofiuddin/orgs","repos_url":"https://api.github.com/users/rofiuddin/repos","events_url":"https://api.github.com/users/rofiuddin/events{/privacy}","received_events_url":"https://api.github.com/users/rofiuddin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rofiuddin/fels_87","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/rofiuddin/fels_87","forks_url":"https://api.github.com/repos/rofiuddin/fels_87/forks","keys_url":"https://api.github.com/repos/rofiuddin/fels_87/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rofiuddin/fels_87/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rofiuddin/fels_87/teams","hooks_url":"https://api.github.com/repos/rofiuddin/fels_87/hooks","issue_events_url":"https://api.github.com/repos/rofiuddin/fels_87/issues/events{/number}","events_url":"https://api.github.com/repos/rofiuddin/fels_87/events","assignees_url":"https://api.github.com/repos/rofiuddin/fels_87/assignees{/user}","branches_url":"https://api.github.com/repos/rofiuddin/fels_87/branches{/branch}","tags_url":"https://api.github.com/repos/rofiuddin/fels_87/tags","blobs_url":"https://api.github.com/repos/rofiuddin/fels_87/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rofiuddin/fels_87/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rofiuddin/fels_87/git/refs{/sha}","trees_url":"https://api.github.com/repos/rofiuddin/fels_87/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rofiuddin/fels_87/statuses/{sha}","languages_url":"https://api.github.com/repos/rofiuddin/fels_87/languages","stargazers_url":"https://api.github.com/repos/rofiuddin/fels_87/stargazers","contributors_url":"https://api.github.com/repos/rofiuddin/fels_87/contributors","subscribers_url":"https://api.github.com/repos/rofiuddin/fels_87/subscribers","subscription_url":"https://api.github.com/repos/rofiuddin/fels_87/subscription","commits_url":"https://api.github.com/repos/rofiuddin/fels_87/commits{/sha}","git_commits_url":"https://api.github.com/repos/rofiuddin/fels_87/git/commits{/sha}","comments_url":"https://api.github.com/repos/rofiuddin/fels_87/comments{/number}","issue_comment_url":"https://api.github.com/repos/rofiuddin/fels_87/issues/comments{/number}","contents_url":"https://api.github.com/repos/rofiuddin/fels_87/contents/{+path}","compare_url":"https://api.github.com/repos/rofiuddin/fels_87/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rofiuddin/fels_87/merges","archive_url":"https://api.github.com/repos/rofiuddin/fels_87/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rofiuddin/fels_87/downloads","issues_url":"https://api.github.com/repos/rofiuddin/fels_87/issues{/number}","pulls_url":"https://api.github.com/repos/rofiuddin/fels_87/pulls{/number}","milestones_url":"https://api.github.com/repos/rofiuddin/fels_87/milestones{/number}","notifications_url":"https://api.github.com/repos/rofiuddin/fels_87/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rofiuddin/fels_87/labels{/name}","releases_url":"https://api.github.com/repos/rofiuddin/fels_87/releases{/id}","created_at":"2015-11-04T04:03:15Z","updated_at":"2015-11-02T09:22:25Z","pushed_at":"2015-11-20T06:11:48Z","git_url":"git://github.com/rofiuddin/fels_87.git","ssh_url":"git@github.com:rofiuddin/fels_87.git","clone_url":"https://github.com/rofiuddin/fels_87.git","svn_url":"https://github.com/rofiuddin/fels_87","homepage":null,"size":76,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"d16eb914b63f224844170a9873e352e20ac8fad7","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","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":45384436,"name":"fels_87","full_name":"framgia/fels_87","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","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/fels_87","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_87","forks_url":"https://api.github.com/repos/framgia/fels_87/forks","keys_url":"https://api.github.com/repos/framgia/fels_87/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_87/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_87/teams","hooks_url":"https://api.github.com/repos/framgia/fels_87/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_87/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_87/events","assignees_url":"https://api.github.com/repos/framgia/fels_87/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_87/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_87/tags","blobs_url":"https://api.github.com/repos/framgia/fels_87/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_87/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_87/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_87/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_87/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_87/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_87/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_87/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_87/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_87/subscription","commits_url":"https://api.github.com/repos/framgia/fels_87/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_87/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_87/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_87/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_87/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_87/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_87/merges","archive_url":"https://api.github.com/repos/framgia/fels_87/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_87/downloads","issues_url":"https://api.github.com/repos/framgia/fels_87/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_87/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_87/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_87/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_87/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_87/releases{/id}","created_at":"2015-11-02T09:22:25Z","updated_at":"2015-11-02T09:22:25Z","pushed_at":"2015-11-20T06:11:48Z","git_url":"git://github.com/framgia/fels_87.git","ssh_url":"git@github.com:framgia/fels_87.git","clone_url":"https://github.com/framgia/fels_87.git","svn_url":"https://github.com/framgia/fels_87","homepage":null,"size":77,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_87/pulls/15"},"html":{"href":"https://github.com/framgia/fels_87/pull/15"},"issue":{"href":"https://api.github.com/repos/framgia/fels_87/issues/15"},"comments":{"href":"https://api.github.com/repos/framgia/fels_87/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_87/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_87/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_87/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_87/statuses/eb072fe87d44899c3937b5f543a1bab63bf1f676"}}}}