{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_72/pulls/comments/36723802","id":36723802,"diff_hunk":"@@ -2,6 +2,7 @@ class RelationshipsController < ApplicationController\n   def create\n     @user = User.find params[:followed_id]\n     current_user.follow @user\n+    record_activity(current_user,current_user.name,@user.name,t(\"follow\"),nil)","path":"app/controllers/relationships_controller.rb","position":4,"original_position":4,"commit_id":"c0ea5ee91ce120674d36cd4d0a32ad4938970993","original_commit_id":"c0ea5ee91ce120674d36cd4d0a32ad4938970993","user":{"login":"ThuBM","id":5279620,"avatar_url":"https://avatars.githubusercontent.com/u/5279620?v=3","gravatar_id":"","url":"https://api.github.com/users/ThuBM","html_url":"https://github.com/ThuBM","followers_url":"https://api.github.com/users/ThuBM/followers","following_url":"https://api.github.com/users/ThuBM/following{/other_user}","gists_url":"https://api.github.com/users/ThuBM/gists{/gist_id}","starred_url":"https://api.github.com/users/ThuBM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThuBM/subscriptions","organizations_url":"https://api.github.com/users/ThuBM/orgs","repos_url":"https://api.github.com/users/ThuBM/repos","events_url":"https://api.github.com/users/ThuBM/events{/privacy}","received_events_url":"https://api.github.com/users/ThuBM/received_events","type":"User","site_admin":false},"body":"sử dung callback nhá em","created_at":"2015-08-11T08:51:14Z","updated_at":"2015-08-11T08:51:14Z","html_url":"https://github.com/framgia/fels_72/pull/17#discussion_r36723802","pull_request_url":"https://api.github.com/repos/framgia/fels_72/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_72/pulls/comments/36723802"},"html":{"href":"https://github.com/framgia/fels_72/pull/17#discussion_r36723802"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_72/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_72/pulls/17","id":42104913,"html_url":"https://github.com/framgia/fels_72/pull/17","diff_url":"https://github.com/framgia/fels_72/pull/17.diff","patch_url":"https://github.com/framgia/fels_72/pull/17.patch","issue_url":"https://api.github.com/repos/framgia/fels_72/issues/17","number":17,"state":"open","locked":false,"title":"add ActivityLog","user":{"login":"BichVN","id":6469148,"avatar_url":"https://avatars.githubusercontent.com/u/6469148?v=3","gravatar_id":"","url":"https://api.github.com/users/BichVN","html_url":"https://github.com/BichVN","followers_url":"https://api.github.com/users/BichVN/followers","following_url":"https://api.github.com/users/BichVN/following{/other_user}","gists_url":"https://api.github.com/users/BichVN/gists{/gist_id}","starred_url":"https://api.github.com/users/BichVN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BichVN/subscriptions","organizations_url":"https://api.github.com/users/BichVN/orgs","repos_url":"https://api.github.com/users/BichVN/repos","events_url":"https://api.github.com/users/BichVN/events{/privacy}","received_events_url":"https://api.github.com/users/BichVN/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-11T08:38:17Z","updated_at":"2015-08-11T08:51:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ccfba7e8f48939f6e338ccd5d91487afc55371cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_72/pulls/17/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_72/pulls/17/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_72/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_72/issues/17/comments","statuses_url":"https://api.github.com/repos/framgia/fels_72/statuses/c0ea5ee91ce120674d36cd4d0a32ad4938970993","head":{"label":"BichVN:addActivities","ref":"addActivities","sha":"c0ea5ee91ce120674d36cd4d0a32ad4938970993","user":{"login":"BichVN","id":6469148,"avatar_url":"https://avatars.githubusercontent.com/u/6469148?v=3","gravatar_id":"","url":"https://api.github.com/users/BichVN","html_url":"https://github.com/BichVN","followers_url":"https://api.github.com/users/BichVN/followers","following_url":"https://api.github.com/users/BichVN/following{/other_user}","gists_url":"https://api.github.com/users/BichVN/gists{/gist_id}","starred_url":"https://api.github.com/users/BichVN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BichVN/subscriptions","organizations_url":"https://api.github.com/users/BichVN/orgs","repos_url":"https://api.github.com/users/BichVN/repos","events_url":"https://api.github.com/users/BichVN/events{/privacy}","received_events_url":"https://api.github.com/users/BichVN/received_events","type":"User","site_admin":false},"repo":{"id":39754812,"name":"fels_72","full_name":"BichVN/fels_72","owner":{"login":"BichVN","id":6469148,"avatar_url":"https://avatars.githubusercontent.com/u/6469148?v=3","gravatar_id":"","url":"https://api.github.com/users/BichVN","html_url":"https://github.com/BichVN","followers_url":"https://api.github.com/users/BichVN/followers","following_url":"https://api.github.com/users/BichVN/following{/other_user}","gists_url":"https://api.github.com/users/BichVN/gists{/gist_id}","starred_url":"https://api.github.com/users/BichVN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BichVN/subscriptions","organizations_url":"https://api.github.com/users/BichVN/orgs","repos_url":"https://api.github.com/users/BichVN/repos","events_url":"https://api.github.com/users/BichVN/events{/privacy}","received_events_url":"https://api.github.com/users/BichVN/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BichVN/fels_72","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/BichVN/fels_72","forks_url":"https://api.github.com/repos/BichVN/fels_72/forks","keys_url":"https://api.github.com/repos/BichVN/fels_72/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BichVN/fels_72/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BichVN/fels_72/teams","hooks_url":"https://api.github.com/repos/BichVN/fels_72/hooks","issue_events_url":"https://api.github.com/repos/BichVN/fels_72/issues/events{/number}","events_url":"https://api.github.com/repos/BichVN/fels_72/events","assignees_url":"https://api.github.com/repos/BichVN/fels_72/assignees{/user}","branches_url":"https://api.github.com/repos/BichVN/fels_72/branches{/branch}","tags_url":"https://api.github.com/repos/BichVN/fels_72/tags","blobs_url":"https://api.github.com/repos/BichVN/fels_72/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BichVN/fels_72/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BichVN/fels_72/git/refs{/sha}","trees_url":"https://api.github.com/repos/BichVN/fels_72/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BichVN/fels_72/statuses/{sha}","languages_url":"https://api.github.com/repos/BichVN/fels_72/languages","stargazers_url":"https://api.github.com/repos/BichVN/fels_72/stargazers","contributors_url":"https://api.github.com/repos/BichVN/fels_72/contributors","subscribers_url":"https://api.github.com/repos/BichVN/fels_72/subscribers","subscription_url":"https://api.github.com/repos/BichVN/fels_72/subscription","commits_url":"https://api.github.com/repos/BichVN/fels_72/commits{/sha}","git_commits_url":"https://api.github.com/repos/BichVN/fels_72/git/commits{/sha}","comments_url":"https://api.github.com/repos/BichVN/fels_72/comments{/number}","issue_comment_url":"https://api.github.com/repos/BichVN/fels_72/issues/comments{/number}","contents_url":"https://api.github.com/repos/BichVN/fels_72/contents/{+path}","compare_url":"https://api.github.com/repos/BichVN/fels_72/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BichVN/fels_72/merges","archive_url":"https://api.github.com/repos/BichVN/fels_72/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BichVN/fels_72/downloads","issues_url":"https://api.github.com/repos/BichVN/fels_72/issues{/number}","pulls_url":"https://api.github.com/repos/BichVN/fels_72/pulls{/number}","milestones_url":"https://api.github.com/repos/BichVN/fels_72/milestones{/number}","notifications_url":"https://api.github.com/repos/BichVN/fels_72/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BichVN/fels_72/labels{/name}","releases_url":"https://api.github.com/repos/BichVN/fels_72/releases{/id}","created_at":"2015-07-27T04:19:17Z","updated_at":"2015-07-20T03:14:41Z","pushed_at":"2015-08-11T08:46:31Z","git_url":"git://github.com/BichVN/fels_72.git","ssh_url":"git@github.com:BichVN/fels_72.git","clone_url":"https://github.com/BichVN/fels_72.git","svn_url":"https://github.com/BichVN/fels_72","homepage":null,"size":164,"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":"c5c389fbccfe6e57fa3efa4c5d8e7f9428ad2e23","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":39360703,"name":"fels_72","full_name":"framgia/fels_72","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_72","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_72","forks_url":"https://api.github.com/repos/framgia/fels_72/forks","keys_url":"https://api.github.com/repos/framgia/fels_72/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_72/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_72/teams","hooks_url":"https://api.github.com/repos/framgia/fels_72/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_72/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_72/events","assignees_url":"https://api.github.com/repos/framgia/fels_72/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_72/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_72/tags","blobs_url":"https://api.github.com/repos/framgia/fels_72/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_72/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_72/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_72/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_72/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_72/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_72/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_72/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_72/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_72/subscription","commits_url":"https://api.github.com/repos/framgia/fels_72/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_72/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_72/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_72/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_72/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_72/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_72/merges","archive_url":"https://api.github.com/repos/framgia/fels_72/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_72/downloads","issues_url":"https://api.github.com/repos/framgia/fels_72/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_72/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_72/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_72/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_72/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_72/releases{/id}","created_at":"2015-07-20T03:14:41Z","updated_at":"2015-07-20T03:14:41Z","pushed_at":"2015-08-11T08:46:32Z","git_url":"git://github.com/framgia/fels_72.git","ssh_url":"git@github.com:framgia/fels_72.git","clone_url":"https://github.com/framgia/fels_72.git","svn_url":"https://github.com/framgia/fels_72","homepage":null,"size":402,"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":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_72/pulls/17"},"html":{"href":"https://github.com/framgia/fels_72/pull/17"},"issue":{"href":"https://api.github.com/repos/framgia/fels_72/issues/17"},"comments":{"href":"https://api.github.com/repos/framgia/fels_72/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_72/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_72/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_72/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_72/statuses/c0ea5ee91ce120674d36cd4d0a32ad4938970993"}}}}