{"action":"created","comment":{"url":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/comments/235656580","pull_request_review_id":177567559,"id":235656580,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTY1NjU4MA==","diff_hunk":"@@ -0,0 +1,117 @@\n+import React from 'react';\n+import axios from 'axios';\n+import { Table,Button } from 'reactstrap';\n+import { Link } from 'react-router-dom';\n+import { connect } from 'react-redux';\n+import PropTypes from 'prop-types';\n+import * as action from '../actions/setLists';\n+import User from './User';\n+\n+const searchingFor= term => {\n+  return function(x){\n+    return x.username.toLowerCase().includes(term.toLowerCase()) || !term;\n+  };\n+};\n+\n+export class Follow extends React.Component {\n+  constructor(props) {\n+    super(props);\n+    this.state = {\n+      users: [],\n+      term: '',\n+      lists: [],\n+   };\n+ }\n+\n+  componentDidMount() {\n+    let token = localStorage.getItem('jwt');\n+    axios.get('/api/users.json', {\n+      headers: {\n+        'Authorization' : token\n+      }\n+    })\n+    .then(response => {\n+      this.setState({\n+        users:response.data\n+      });\n+    });\n+  }\n+\n+  handleSearch = (event) => {\n+    this.setState({term: event.target.value});\n+  }\n+\n+  handleShowLists = (user) => () => {\n+    let token = localStorage.getItem('jwt');\n+    axios.get('/api/userlists',{\n+      params:{\n+        id: user.id\n+      }\n+    },\n+    { headers: {\n+        'Authorization' : token\n+      }\n+    })\n+    .then(response => {\n+      this.props.setLists(response.data);\n+    });\n+  }\n+\n+  follow = (user) => () => {\n+    let token = localStorage.getItem('jwt');","path":"client/src/components/Follow.js","position":61,"original_position":61,"commit_id":"a0f1c417ba3c20f9cb1812c040258c26be9af766","original_commit_id":"622776b87b38a2cf560cf9117a68a7445598c3da","user":{"login":"Sheff3rd","id":22118704,"node_id":"MDQ6VXNlcjIyMTE4NzA0","avatar_url":"https://avatars0.githubusercontent.com/u/22118704?v=4","gravatar_id":"","url":"https://api.github.com/users/Sheff3rd","html_url":"https://github.com/Sheff3rd","followers_url":"https://api.github.com/users/Sheff3rd/followers","following_url":"https://api.github.com/users/Sheff3rd/following{/other_user}","gists_url":"https://api.github.com/users/Sheff3rd/gists{/gist_id}","starred_url":"https://api.github.com/users/Sheff3rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sheff3rd/subscriptions","organizations_url":"https://api.github.com/users/Sheff3rd/orgs","repos_url":"https://api.github.com/users/Sheff3rd/repos","events_url":"https://api.github.com/users/Sheff3rd/events{/privacy}","received_events_url":"https://api.github.com/users/Sheff3rd/received_events","type":"User","site_admin":false},"body":"const","created_at":"2018-11-22T09:38:44Z","updated_at":"2018-11-22T09:39:24Z","html_url":"https://github.com/gladkiy98/list-app_v2/pull/13#discussion_r235656580","pull_request_url":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/13","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/comments/235656580"},"html":{"href":"https://github.com/gladkiy98/list-app_v2/pull/13#discussion_r235656580"},"pull_request":{"href":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/13","id":229077726,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MDc3NzI2","html_url":"https://github.com/gladkiy98/list-app_v2/pull/13","diff_url":"https://github.com/gladkiy98/list-app_v2/pull/13.diff","patch_url":"https://github.com/gladkiy98/list-app_v2/pull/13.patch","issue_url":"https://api.github.com/repos/gladkiy98/list-app_v2/issues/13","number":13,"state":"open","locked":false,"title":"Friends","user":{"login":"vtstepura","id":23529318,"node_id":"MDQ6VXNlcjIzNTI5MzE4","avatar_url":"https://avatars2.githubusercontent.com/u/23529318?v=4","gravatar_id":"","url":"https://api.github.com/users/vtstepura","html_url":"https://github.com/vtstepura","followers_url":"https://api.github.com/users/vtstepura/followers","following_url":"https://api.github.com/users/vtstepura/following{/other_user}","gists_url":"https://api.github.com/users/vtstepura/gists{/gist_id}","starred_url":"https://api.github.com/users/vtstepura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtstepura/subscriptions","organizations_url":"https://api.github.com/users/vtstepura/orgs","repos_url":"https://api.github.com/users/vtstepura/repos","events_url":"https://api.github.com/users/vtstepura/events{/privacy}","received_events_url":"https://api.github.com/users/vtstepura/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-07T15:58:59Z","updated_at":"2018-11-22T09:39:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35b6694d993efdefb8e3b1c860c87aa12b3e32d0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1124452301,"node_id":"MDU6TGFiZWwxMTI0NDUyMzAx","url":"https://api.github.com/repos/gladkiy98/list-app_v2/labels/work%20in%20progress","name":"work in progress","color":"7693e0","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/13/commits","review_comments_url":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/13/comments","review_comment_url":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gladkiy98/list-app_v2/issues/13/comments","statuses_url":"https://api.github.com/repos/gladkiy98/list-app_v2/statuses/a0f1c417ba3c20f9cb1812c040258c26be9af766","head":{"label":"gladkiy98:Friends","ref":"Friends","sha":"a0f1c417ba3c20f9cb1812c040258c26be9af766","user":{"login":"gladkiy98","id":40774866,"node_id":"MDQ6VXNlcjQwNzc0ODY2","avatar_url":"https://avatars3.githubusercontent.com/u/40774866?v=4","gravatar_id":"","url":"https://api.github.com/users/gladkiy98","html_url":"https://github.com/gladkiy98","followers_url":"https://api.github.com/users/gladkiy98/followers","following_url":"https://api.github.com/users/gladkiy98/following{/other_user}","gists_url":"https://api.github.com/users/gladkiy98/gists{/gist_id}","starred_url":"https://api.github.com/users/gladkiy98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gladkiy98/subscriptions","organizations_url":"https://api.github.com/users/gladkiy98/orgs","repos_url":"https://api.github.com/users/gladkiy98/repos","events_url":"https://api.github.com/users/gladkiy98/events{/privacy}","received_events_url":"https://api.github.com/users/gladkiy98/received_events","type":"User","site_admin":false},"repo":{"id":144956657,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ5NTY2NTc=","name":"list-app_v2","full_name":"gladkiy98/list-app_v2","private":false,"owner":{"login":"gladkiy98","id":40774866,"node_id":"MDQ6VXNlcjQwNzc0ODY2","avatar_url":"https://avatars3.githubusercontent.com/u/40774866?v=4","gravatar_id":"","url":"https://api.github.com/users/gladkiy98","html_url":"https://github.com/gladkiy98","followers_url":"https://api.github.com/users/gladkiy98/followers","following_url":"https://api.github.com/users/gladkiy98/following{/other_user}","gists_url":"https://api.github.com/users/gladkiy98/gists{/gist_id}","starred_url":"https://api.github.com/users/gladkiy98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gladkiy98/subscriptions","organizations_url":"https://api.github.com/users/gladkiy98/orgs","repos_url":"https://api.github.com/users/gladkiy98/repos","events_url":"https://api.github.com/users/gladkiy98/events{/privacy}","received_events_url":"https://api.github.com/users/gladkiy98/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gladkiy98/list-app_v2","description":null,"fork":false,"url":"https://api.github.com/repos/gladkiy98/list-app_v2","forks_url":"https://api.github.com/repos/gladkiy98/list-app_v2/forks","keys_url":"https://api.github.com/repos/gladkiy98/list-app_v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gladkiy98/list-app_v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gladkiy98/list-app_v2/teams","hooks_url":"https://api.github.com/repos/gladkiy98/list-app_v2/hooks","issue_events_url":"https://api.github.com/repos/gladkiy98/list-app_v2/issues/events{/number}","events_url":"https://api.github.com/repos/gladkiy98/list-app_v2/events","assignees_url":"https://api.github.com/repos/gladkiy98/list-app_v2/assignees{/user}","branches_url":"https://api.github.com/repos/gladkiy98/list-app_v2/branches{/branch}","tags_url":"https://api.github.com/repos/gladkiy98/list-app_v2/tags","blobs_url":"https://api.github.com/repos/gladkiy98/list-app_v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gladkiy98/list-app_v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gladkiy98/list-app_v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/gladkiy98/list-app_v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gladkiy98/list-app_v2/statuses/{sha}","languages_url":"https://api.github.com/repos/gladkiy98/list-app_v2/languages","stargazers_url":"https://api.github.com/repos/gladkiy98/list-app_v2/stargazers","contributors_url":"https://api.github.com/repos/gladkiy98/list-app_v2/contributors","subscribers_url":"https://api.github.com/repos/gladkiy98/list-app_v2/subscribers","subscription_url":"https://api.github.com/repos/gladkiy98/list-app_v2/subscription","commits_url":"https://api.github.com/repos/gladkiy98/list-app_v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/gladkiy98/list-app_v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/gladkiy98/list-app_v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/gladkiy98/list-app_v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/gladkiy98/list-app_v2/contents/{+path}","compare_url":"https://api.github.com/repos/gladkiy98/list-app_v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gladkiy98/list-app_v2/merges","archive_url":"https://api.github.com/repos/gladkiy98/list-app_v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gladkiy98/list-app_v2/downloads","issues_url":"https://api.github.com/repos/gladkiy98/list-app_v2/issues{/number}","pulls_url":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls{/number}","milestones_url":"https://api.github.com/repos/gladkiy98/list-app_v2/milestones{/number}","notifications_url":"https://api.github.com/repos/gladkiy98/list-app_v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gladkiy98/list-app_v2/labels{/name}","releases_url":"https://api.github.com/repos/gladkiy98/list-app_v2/releases{/id}","deployments_url":"https://api.github.com/repos/gladkiy98/list-app_v2/deployments","created_at":"2018-08-16T08:02:54Z","updated_at":"2018-10-23T13:31:22Z","pushed_at":"2018-11-22T09:39:11Z","git_url":"git://github.com/gladkiy98/list-app_v2.git","ssh_url":"git@github.com:gladkiy98/list-app_v2.git","clone_url":"https://github.com/gladkiy98/list-app_v2.git","svn_url":"https://github.com/gladkiy98/list-app_v2","homepage":null,"size":384,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"gladkiy98:master","ref":"master","sha":"9ab4fd3ebe0c5cd3169d4e04a7bea4a4bdbb3f10","user":{"login":"gladkiy98","id":40774866,"node_id":"MDQ6VXNlcjQwNzc0ODY2","avatar_url":"https://avatars3.githubusercontent.com/u/40774866?v=4","gravatar_id":"","url":"https://api.github.com/users/gladkiy98","html_url":"https://github.com/gladkiy98","followers_url":"https://api.github.com/users/gladkiy98/followers","following_url":"https://api.github.com/users/gladkiy98/following{/other_user}","gists_url":"https://api.github.com/users/gladkiy98/gists{/gist_id}","starred_url":"https://api.github.com/users/gladkiy98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gladkiy98/subscriptions","organizations_url":"https://api.github.com/users/gladkiy98/orgs","repos_url":"https://api.github.com/users/gladkiy98/repos","events_url":"https://api.github.com/users/gladkiy98/events{/privacy}","received_events_url":"https://api.github.com/users/gladkiy98/received_events","type":"User","site_admin":false},"repo":{"id":144956657,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ5NTY2NTc=","name":"list-app_v2","full_name":"gladkiy98/list-app_v2","private":false,"owner":{"login":"gladkiy98","id":40774866,"node_id":"MDQ6VXNlcjQwNzc0ODY2","avatar_url":"https://avatars3.githubusercontent.com/u/40774866?v=4","gravatar_id":"","url":"https://api.github.com/users/gladkiy98","html_url":"https://github.com/gladkiy98","followers_url":"https://api.github.com/users/gladkiy98/followers","following_url":"https://api.github.com/users/gladkiy98/following{/other_user}","gists_url":"https://api.github.com/users/gladkiy98/gists{/gist_id}","starred_url":"https://api.github.com/users/gladkiy98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gladkiy98/subscriptions","organizations_url":"https://api.github.com/users/gladkiy98/orgs","repos_url":"https://api.github.com/users/gladkiy98/repos","events_url":"https://api.github.com/users/gladkiy98/events{/privacy}","received_events_url":"https://api.github.com/users/gladkiy98/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gladkiy98/list-app_v2","description":null,"fork":false,"url":"https://api.github.com/repos/gladkiy98/list-app_v2","forks_url":"https://api.github.com/repos/gladkiy98/list-app_v2/forks","keys_url":"https://api.github.com/repos/gladkiy98/list-app_v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gladkiy98/list-app_v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gladkiy98/list-app_v2/teams","hooks_url":"https://api.github.com/repos/gladkiy98/list-app_v2/hooks","issue_events_url":"https://api.github.com/repos/gladkiy98/list-app_v2/issues/events{/number}","events_url":"https://api.github.com/repos/gladkiy98/list-app_v2/events","assignees_url":"https://api.github.com/repos/gladkiy98/list-app_v2/assignees{/user}","branches_url":"https://api.github.com/repos/gladkiy98/list-app_v2/branches{/branch}","tags_url":"https://api.github.com/repos/gladkiy98/list-app_v2/tags","blobs_url":"https://api.github.com/repos/gladkiy98/list-app_v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gladkiy98/list-app_v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gladkiy98/list-app_v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/gladkiy98/list-app_v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gladkiy98/list-app_v2/statuses/{sha}","languages_url":"https://api.github.com/repos/gladkiy98/list-app_v2/languages","stargazers_url":"https://api.github.com/repos/gladkiy98/list-app_v2/stargazers","contributors_url":"https://api.github.com/repos/gladkiy98/list-app_v2/contributors","subscribers_url":"https://api.github.com/repos/gladkiy98/list-app_v2/subscribers","subscription_url":"https://api.github.com/repos/gladkiy98/list-app_v2/subscription","commits_url":"https://api.github.com/repos/gladkiy98/list-app_v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/gladkiy98/list-app_v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/gladkiy98/list-app_v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/gladkiy98/list-app_v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/gladkiy98/list-app_v2/contents/{+path}","compare_url":"https://api.github.com/repos/gladkiy98/list-app_v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gladkiy98/list-app_v2/merges","archive_url":"https://api.github.com/repos/gladkiy98/list-app_v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gladkiy98/list-app_v2/downloads","issues_url":"https://api.github.com/repos/gladkiy98/list-app_v2/issues{/number}","pulls_url":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls{/number}","milestones_url":"https://api.github.com/repos/gladkiy98/list-app_v2/milestones{/number}","notifications_url":"https://api.github.com/repos/gladkiy98/list-app_v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gladkiy98/list-app_v2/labels{/name}","releases_url":"https://api.github.com/repos/gladkiy98/list-app_v2/releases{/id}","deployments_url":"https://api.github.com/repos/gladkiy98/list-app_v2/deployments","created_at":"2018-08-16T08:02:54Z","updated_at":"2018-10-23T13:31:22Z","pushed_at":"2018-11-22T09:39:11Z","git_url":"git://github.com/gladkiy98/list-app_v2.git","ssh_url":"git@github.com:gladkiy98/list-app_v2.git","clone_url":"https://github.com/gladkiy98/list-app_v2.git","svn_url":"https://github.com/gladkiy98/list-app_v2","homepage":null,"size":384,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/13"},"html":{"href":"https://github.com/gladkiy98/list-app_v2/pull/13"},"issue":{"href":"https://api.github.com/repos/gladkiy98/list-app_v2/issues/13"},"comments":{"href":"https://api.github.com/repos/gladkiy98/list-app_v2/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gladkiy98/list-app_v2/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/gladkiy98/list-app_v2/statuses/a0f1c417ba3c20f9cb1812c040258c26be9af766"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Sheff3rd"}}