{"action":"created","comment":{"url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/comments/205767603","pull_request_review_id":141105532,"id":205767603,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTc2NzYwMw==","diff_hunk":"@@ -0,0 +1,21 @@\n+class RelationshipsController < ApplicationController\n+  before_action :logged_in_user\n+\n+  def create\n+    @user = User.find(params[:followed_id])\n+    current_user.follow(@user)\n+    respond_to do |format|\n+      format.html { redirect_to @user }\n+      format.js\n+    end\n+  end\n+\n+  def destroy\n+    @user = Relationship.find(params[:id]).followed","path":"app/controllers/relationships_controller.rb","position":14,"original_position":14,"commit_id":"ff90bd7f2a8503a820a0d7e58eae69ae1b8998c7","original_commit_id":"ff90bd7f2a8503a820a0d7e58eae69ae1b8998c7","user":{"login":"hungnh103","id":22311747,"node_id":"MDQ6VXNlcjIyMzExNzQ3","avatar_url":"https://avatars0.githubusercontent.com/u/22311747?v=4","gravatar_id":"","url":"https://api.github.com/users/hungnh103","html_url":"https://github.com/hungnh103","followers_url":"https://api.github.com/users/hungnh103/followers","following_url":"https://api.github.com/users/hungnh103/following{/other_user}","gists_url":"https://api.github.com/users/hungnh103/gists{/gist_id}","starred_url":"https://api.github.com/users/hungnh103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungnh103/subscriptions","organizations_url":"https://api.github.com/users/hungnh103/orgs","repos_url":"https://api.github.com/users/hungnh103/repos","events_url":"https://api.github.com/users/hungnh103/events{/privacy}","received_events_url":"https://api.github.com/users/hungnh103/received_events","type":"User","site_admin":false},"body":"tương tự cmt trên ạ","created_at":"2018-07-27T13:12:02Z","updated_at":"2018-07-27T13:12:46Z","html_url":"https://github.com/awesome-academy/pr1801-daily-report-system/pull/25#discussion_r205767603","pull_request_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/25","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/comments/205767603"},"html":{"href":"https://github.com/awesome-academy/pr1801-daily-report-system/pull/25#discussion_r205767603"},"pull_request":{"href":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/25","id":204419172,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NDE5MTcy","html_url":"https://github.com/awesome-academy/pr1801-daily-report-system/pull/25","diff_url":"https://github.com/awesome-academy/pr1801-daily-report-system/pull/25.diff","patch_url":"https://github.com/awesome-academy/pr1801-daily-report-system/pull/25.patch","issue_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/issues/25","number":25,"state":"open","locked":false,"title":"follow and unfollow","user":{"login":"susanlehmann","id":30081979,"node_id":"MDQ6VXNlcjMwMDgxOTc5","avatar_url":"https://avatars0.githubusercontent.com/u/30081979?v=4","gravatar_id":"","url":"https://api.github.com/users/susanlehmann","html_url":"https://github.com/susanlehmann","followers_url":"https://api.github.com/users/susanlehmann/followers","following_url":"https://api.github.com/users/susanlehmann/following{/other_user}","gists_url":"https://api.github.com/users/susanlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/susanlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/susanlehmann/subscriptions","organizations_url":"https://api.github.com/users/susanlehmann/orgs","repos_url":"https://api.github.com/users/susanlehmann/repos","events_url":"https://api.github.com/users/susanlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/susanlehmann/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-27T12:36:15Z","updated_at":"2018-07-27T13:12:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6385cb72c074e3fe4e7cedaff0f8e262c5982478","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/25/commits","review_comments_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/25/comments","review_comment_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/issues/25/comments","statuses_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/statuses/ff90bd7f2a8503a820a0d7e58eae69ae1b8998c7","head":{"label":"susanlehmann:follow_unfollow","ref":"follow_unfollow","sha":"ff90bd7f2a8503a820a0d7e58eae69ae1b8998c7","user":{"login":"susanlehmann","id":30081979,"node_id":"MDQ6VXNlcjMwMDgxOTc5","avatar_url":"https://avatars0.githubusercontent.com/u/30081979?v=4","gravatar_id":"","url":"https://api.github.com/users/susanlehmann","html_url":"https://github.com/susanlehmann","followers_url":"https://api.github.com/users/susanlehmann/followers","following_url":"https://api.github.com/users/susanlehmann/following{/other_user}","gists_url":"https://api.github.com/users/susanlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/susanlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/susanlehmann/subscriptions","organizations_url":"https://api.github.com/users/susanlehmann/orgs","repos_url":"https://api.github.com/users/susanlehmann/repos","events_url":"https://api.github.com/users/susanlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/susanlehmann/received_events","type":"User","site_admin":false},"repo":{"id":137479725,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc0Nzk3MjU=","name":"pr1801-daily-report-system","full_name":"susanlehmann/pr1801-daily-report-system","owner":{"login":"susanlehmann","id":30081979,"node_id":"MDQ6VXNlcjMwMDgxOTc5","avatar_url":"https://avatars0.githubusercontent.com/u/30081979?v=4","gravatar_id":"","url":"https://api.github.com/users/susanlehmann","html_url":"https://github.com/susanlehmann","followers_url":"https://api.github.com/users/susanlehmann/followers","following_url":"https://api.github.com/users/susanlehmann/following{/other_user}","gists_url":"https://api.github.com/users/susanlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/susanlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/susanlehmann/subscriptions","organizations_url":"https://api.github.com/users/susanlehmann/orgs","repos_url":"https://api.github.com/users/susanlehmann/repos","events_url":"https://api.github.com/users/susanlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/susanlehmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/susanlehmann/pr1801-daily-report-system","description":null,"fork":true,"url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system","forks_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/forks","keys_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/teams","hooks_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/hooks","issue_events_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/issues/events{/number}","events_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/events","assignees_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/assignees{/user}","branches_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/branches{/branch}","tags_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/tags","blobs_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/statuses/{sha}","languages_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/languages","stargazers_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/stargazers","contributors_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/contributors","subscribers_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/subscribers","subscription_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/subscription","commits_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/contents/{+path}","compare_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/merges","archive_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/downloads","issues_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/issues{/number}","pulls_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/pulls{/number}","milestones_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/milestones{/number}","notifications_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/labels{/name}","releases_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/releases{/id}","deployments_url":"https://api.github.com/repos/susanlehmann/pr1801-daily-report-system/deployments","created_at":"2018-06-15T11:27:50Z","updated_at":"2018-07-11T11:21:14Z","pushed_at":"2018-07-27T13:09:44Z","git_url":"git://github.com/susanlehmann/pr1801-daily-report-system.git","ssh_url":"git@github.com:susanlehmann/pr1801-daily-report-system.git","clone_url":"https://github.com/susanlehmann/pr1801-daily-report-system.git","svn_url":"https://github.com/susanlehmann/pr1801-daily-report-system","homepage":null,"size":1093,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"awesome-academy:master","ref":"master","sha":"cae93c865e38a2cfdd112150e2658ebaaf0e1432","user":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":136917090,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY5MTcwOTA=","name":"pr1801-daily-report-system","full_name":"awesome-academy/pr1801-daily-report-system","owner":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/awesome-academy/pr1801-daily-report-system","description":null,"fork":false,"url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system","forks_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/forks","keys_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/teams","hooks_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/hooks","issue_events_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/issues/events{/number}","events_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/events","assignees_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/assignees{/user}","branches_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/branches{/branch}","tags_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/tags","blobs_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/statuses/{sha}","languages_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/languages","stargazers_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/stargazers","contributors_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/contributors","subscribers_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/subscribers","subscription_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/subscription","commits_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/contents/{+path}","compare_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/merges","archive_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/downloads","issues_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/issues{/number}","pulls_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls{/number}","milestones_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/milestones{/number}","notifications_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/labels{/name}","releases_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/releases{/id}","deployments_url":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/deployments","created_at":"2018-06-11T11:29:53Z","updated_at":"2018-07-27T11:15:24Z","pushed_at":"2018-07-27T13:09:46Z","git_url":"git://github.com/awesome-academy/pr1801-daily-report-system.git","ssh_url":"git@github.com:awesome-academy/pr1801-daily-report-system.git","clone_url":"https://github.com/awesome-academy/pr1801-daily-report-system.git","svn_url":"https://github.com/awesome-academy/pr1801-daily-report-system","homepage":null,"size":776,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":4,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/25"},"html":{"href":"https://github.com/awesome-academy/pr1801-daily-report-system/pull/25"},"issue":{"href":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/issues/25"},"comments":{"href":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/awesome-academy/pr1801-daily-report-system/statuses/ff90bd7f2a8503a820a0d7e58eae69ae1b8998c7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hungnh103"}}