{"action":"created","comment":{"url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/comments/235883512","pull_request_review_id":177853523,"id":235883512,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTg4MzUxMg==","diff_hunk":"@@ -97,6 +97,33 @@ class CommentForm extends Component {\n     footerRef = createRef();\n     editorRef = createRef();\n \n+    componentDidMount() {\n+        if (location.hash === '#createComment') {\n+            this.setFocus();\n+            this.onInputFocused();\n+        } else if (this.props.autoFocus) {\n+            this.setFocus();\n+        }\n+\n+        if (this.props.forwardRef) {\n+            this.props.forwardRef.current = this;\n+        }\n+    }\n+\n+    componentWillUnmount() {\n+        this._unmount = true;\n+\n+        if (this.props.forwardRef) {\n+            this.props.forwardRef.current = null;\n+        }\n+    }\n+\n+    componentWillReceiveProps(nextProps) {\n+        if (!this.props.commentInputFocused && nextProps.commentInputFocused) {\n+            this.setFocus();\n+        }\n+    }\n+","path":"app/components/modules/CommentForm/CommentForm.jsx","position":30,"original_position":30,"commit_id":"f9e298cf29e86ec94d2dcfb190c68f6ab9c06527","original_commit_id":"f9e298cf29e86ec94d2dcfb190c68f6ab9c06527","user":{"login":"Bacher","id":2598671,"node_id":"MDQ6VXNlcjI1OTg2NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/2598671?v=4","gravatar_id":"","url":"https://api.github.com/users/Bacher","html_url":"https://github.com/Bacher","followers_url":"https://api.github.com/users/Bacher/followers","following_url":"https://api.github.com/users/Bacher/following{/other_user}","gists_url":"https://api.github.com/users/Bacher/gists{/gist_id}","starred_url":"https://api.github.com/users/Bacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bacher/subscriptions","organizations_url":"https://api.github.com/users/Bacher/orgs","repos_url":"https://api.github.com/users/Bacher/repos","events_url":"https://api.github.com/users/Bacher/events{/privacy}","received_events_url":"https://api.github.com/users/Bacher/received_events","type":"User","site_admin":false},"body":"Эти три метода просто переместились в этом файле вверх.","created_at":"2018-11-23T09:34:02Z","updated_at":"2018-11-23T09:34:03Z","html_url":"https://github.com/GolosChain/tolstoy/pull/1642#discussion_r235883512","pull_request_url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1642","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/comments/235883512"},"html":{"href":"https://github.com/GolosChain/tolstoy/pull/1642#discussion_r235883512"},"pull_request":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1642"}}},"pull_request":{"url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1642","id":233144471,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMTQ0NDcx","html_url":"https://github.com/GolosChain/tolstoy/pull/1642","diff_url":"https://github.com/GolosChain/tolstoy/pull/1642.diff","patch_url":"https://github.com/GolosChain/tolstoy/pull/1642.patch","issue_url":"https://api.github.com/repos/GolosChain/tolstoy/issues/1642","number":1642,"state":"open","locked":false,"title":"1639 fix white screen error when posting comment","user":{"login":"Bacher","id":2598671,"node_id":"MDQ6VXNlcjI1OTg2NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/2598671?v=4","gravatar_id":"","url":"https://api.github.com/users/Bacher","html_url":"https://github.com/Bacher","followers_url":"https://api.github.com/users/Bacher/followers","following_url":"https://api.github.com/users/Bacher/following{/other_user}","gists_url":"https://api.github.com/users/Bacher/gists{/gist_id}","starred_url":"https://api.github.com/users/Bacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bacher/subscriptions","organizations_url":"https://api.github.com/users/Bacher/orgs","repos_url":"https://api.github.com/users/Bacher/repos","events_url":"https://api.github.com/users/Bacher/events{/privacy}","received_events_url":"https://api.github.com/users/Bacher/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-23T09:33:42Z","updated_at":"2018-11-23T09:34:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1fb055637b0b9b2c2c285f3eb7932f462dfb2ada","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1642/commits","review_comments_url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1642/comments","review_comment_url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GolosChain/tolstoy/issues/1642/comments","statuses_url":"https://api.github.com/repos/GolosChain/tolstoy/statuses/f9e298cf29e86ec94d2dcfb190c68f6ab9c06527","head":{"label":"GolosChain:1639_fix-white-screen","ref":"1639_fix-white-screen","sha":"f9e298cf29e86ec94d2dcfb190c68f6ab9c06527","user":{"login":"GolosChain","id":20841297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODQxMjk3","avatar_url":"https://avatars0.githubusercontent.com/u/20841297?v=4","gravatar_id":"","url":"https://api.github.com/users/GolosChain","html_url":"https://github.com/GolosChain","followers_url":"https://api.github.com/users/GolosChain/followers","following_url":"https://api.github.com/users/GolosChain/following{/other_user}","gists_url":"https://api.github.com/users/GolosChain/gists{/gist_id}","starred_url":"https://api.github.com/users/GolosChain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GolosChain/subscriptions","organizations_url":"https://api.github.com/users/GolosChain/orgs","repos_url":"https://api.github.com/users/GolosChain/repos","events_url":"https://api.github.com/users/GolosChain/events{/privacy}","received_events_url":"https://api.github.com/users/GolosChain/received_events","type":"Organization","site_admin":false},"repo":{"id":64941562,"node_id":"MDEwOlJlcG9zaXRvcnk2NDk0MTU2Mg==","name":"tolstoy","full_name":"GolosChain/tolstoy","private":false,"owner":{"login":"GolosChain","id":20841297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODQxMjk3","avatar_url":"https://avatars0.githubusercontent.com/u/20841297?v=4","gravatar_id":"","url":"https://api.github.com/users/GolosChain","html_url":"https://github.com/GolosChain","followers_url":"https://api.github.com/users/GolosChain/followers","following_url":"https://api.github.com/users/GolosChain/following{/other_user}","gists_url":"https://api.github.com/users/GolosChain/gists{/gist_id}","starred_url":"https://api.github.com/users/GolosChain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GolosChain/subscriptions","organizations_url":"https://api.github.com/users/GolosChain/orgs","repos_url":"https://api.github.com/users/GolosChain/repos","events_url":"https://api.github.com/users/GolosChain/events{/privacy}","received_events_url":"https://api.github.com/users/GolosChain/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GolosChain/tolstoy","description":"Golos Blockchain Social Web Application","fork":true,"url":"https://api.github.com/repos/GolosChain/tolstoy","forks_url":"https://api.github.com/repos/GolosChain/tolstoy/forks","keys_url":"https://api.github.com/repos/GolosChain/tolstoy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GolosChain/tolstoy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GolosChain/tolstoy/teams","hooks_url":"https://api.github.com/repos/GolosChain/tolstoy/hooks","issue_events_url":"https://api.github.com/repos/GolosChain/tolstoy/issues/events{/number}","events_url":"https://api.github.com/repos/GolosChain/tolstoy/events","assignees_url":"https://api.github.com/repos/GolosChain/tolstoy/assignees{/user}","branches_url":"https://api.github.com/repos/GolosChain/tolstoy/branches{/branch}","tags_url":"https://api.github.com/repos/GolosChain/tolstoy/tags","blobs_url":"https://api.github.com/repos/GolosChain/tolstoy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GolosChain/tolstoy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GolosChain/tolstoy/git/refs{/sha}","trees_url":"https://api.github.com/repos/GolosChain/tolstoy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GolosChain/tolstoy/statuses/{sha}","languages_url":"https://api.github.com/repos/GolosChain/tolstoy/languages","stargazers_url":"https://api.github.com/repos/GolosChain/tolstoy/stargazers","contributors_url":"https://api.github.com/repos/GolosChain/tolstoy/contributors","subscribers_url":"https://api.github.com/repos/GolosChain/tolstoy/subscribers","subscription_url":"https://api.github.com/repos/GolosChain/tolstoy/subscription","commits_url":"https://api.github.com/repos/GolosChain/tolstoy/commits{/sha}","git_commits_url":"https://api.github.com/repos/GolosChain/tolstoy/git/commits{/sha}","comments_url":"https://api.github.com/repos/GolosChain/tolstoy/comments{/number}","issue_comment_url":"https://api.github.com/repos/GolosChain/tolstoy/issues/comments{/number}","contents_url":"https://api.github.com/repos/GolosChain/tolstoy/contents/{+path}","compare_url":"https://api.github.com/repos/GolosChain/tolstoy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GolosChain/tolstoy/merges","archive_url":"https://api.github.com/repos/GolosChain/tolstoy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GolosChain/tolstoy/downloads","issues_url":"https://api.github.com/repos/GolosChain/tolstoy/issues{/number}","pulls_url":"https://api.github.com/repos/GolosChain/tolstoy/pulls{/number}","milestones_url":"https://api.github.com/repos/GolosChain/tolstoy/milestones{/number}","notifications_url":"https://api.github.com/repos/GolosChain/tolstoy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GolosChain/tolstoy/labels{/name}","releases_url":"https://api.github.com/repos/GolosChain/tolstoy/releases{/id}","deployments_url":"https://api.github.com/repos/GolosChain/tolstoy/deployments","created_at":"2016-08-04T14:30:43Z","updated_at":"2018-10-24T11:04:13Z","pushed_at":"2018-11-23T09:33:42Z","git_url":"git://github.com/GolosChain/tolstoy.git","ssh_url":"git@github.com:GolosChain/tolstoy.git","clone_url":"https://github.com/GolosChain/tolstoy.git","svn_url":"https://github.com/GolosChain/tolstoy","homepage":"https://golos.io","size":39010,"stargazers_count":43,"watchers_count":43,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":35,"mirror_url":null,"archived":false,"open_issues_count":367,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":35,"open_issues":367,"watchers":43,"default_branch":"master"}},"base":{"label":"GolosChain:redesign-refactoring","ref":"redesign-refactoring","sha":"e54f3530e3abf54804895f859950ede5b5e111fa","user":{"login":"GolosChain","id":20841297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODQxMjk3","avatar_url":"https://avatars0.githubusercontent.com/u/20841297?v=4","gravatar_id":"","url":"https://api.github.com/users/GolosChain","html_url":"https://github.com/GolosChain","followers_url":"https://api.github.com/users/GolosChain/followers","following_url":"https://api.github.com/users/GolosChain/following{/other_user}","gists_url":"https://api.github.com/users/GolosChain/gists{/gist_id}","starred_url":"https://api.github.com/users/GolosChain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GolosChain/subscriptions","organizations_url":"https://api.github.com/users/GolosChain/orgs","repos_url":"https://api.github.com/users/GolosChain/repos","events_url":"https://api.github.com/users/GolosChain/events{/privacy}","received_events_url":"https://api.github.com/users/GolosChain/received_events","type":"Organization","site_admin":false},"repo":{"id":64941562,"node_id":"MDEwOlJlcG9zaXRvcnk2NDk0MTU2Mg==","name":"tolstoy","full_name":"GolosChain/tolstoy","private":false,"owner":{"login":"GolosChain","id":20841297,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwODQxMjk3","avatar_url":"https://avatars0.githubusercontent.com/u/20841297?v=4","gravatar_id":"","url":"https://api.github.com/users/GolosChain","html_url":"https://github.com/GolosChain","followers_url":"https://api.github.com/users/GolosChain/followers","following_url":"https://api.github.com/users/GolosChain/following{/other_user}","gists_url":"https://api.github.com/users/GolosChain/gists{/gist_id}","starred_url":"https://api.github.com/users/GolosChain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GolosChain/subscriptions","organizations_url":"https://api.github.com/users/GolosChain/orgs","repos_url":"https://api.github.com/users/GolosChain/repos","events_url":"https://api.github.com/users/GolosChain/events{/privacy}","received_events_url":"https://api.github.com/users/GolosChain/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GolosChain/tolstoy","description":"Golos Blockchain Social Web Application","fork":true,"url":"https://api.github.com/repos/GolosChain/tolstoy","forks_url":"https://api.github.com/repos/GolosChain/tolstoy/forks","keys_url":"https://api.github.com/repos/GolosChain/tolstoy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GolosChain/tolstoy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GolosChain/tolstoy/teams","hooks_url":"https://api.github.com/repos/GolosChain/tolstoy/hooks","issue_events_url":"https://api.github.com/repos/GolosChain/tolstoy/issues/events{/number}","events_url":"https://api.github.com/repos/GolosChain/tolstoy/events","assignees_url":"https://api.github.com/repos/GolosChain/tolstoy/assignees{/user}","branches_url":"https://api.github.com/repos/GolosChain/tolstoy/branches{/branch}","tags_url":"https://api.github.com/repos/GolosChain/tolstoy/tags","blobs_url":"https://api.github.com/repos/GolosChain/tolstoy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GolosChain/tolstoy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GolosChain/tolstoy/git/refs{/sha}","trees_url":"https://api.github.com/repos/GolosChain/tolstoy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GolosChain/tolstoy/statuses/{sha}","languages_url":"https://api.github.com/repos/GolosChain/tolstoy/languages","stargazers_url":"https://api.github.com/repos/GolosChain/tolstoy/stargazers","contributors_url":"https://api.github.com/repos/GolosChain/tolstoy/contributors","subscribers_url":"https://api.github.com/repos/GolosChain/tolstoy/subscribers","subscription_url":"https://api.github.com/repos/GolosChain/tolstoy/subscription","commits_url":"https://api.github.com/repos/GolosChain/tolstoy/commits{/sha}","git_commits_url":"https://api.github.com/repos/GolosChain/tolstoy/git/commits{/sha}","comments_url":"https://api.github.com/repos/GolosChain/tolstoy/comments{/number}","issue_comment_url":"https://api.github.com/repos/GolosChain/tolstoy/issues/comments{/number}","contents_url":"https://api.github.com/repos/GolosChain/tolstoy/contents/{+path}","compare_url":"https://api.github.com/repos/GolosChain/tolstoy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GolosChain/tolstoy/merges","archive_url":"https://api.github.com/repos/GolosChain/tolstoy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GolosChain/tolstoy/downloads","issues_url":"https://api.github.com/repos/GolosChain/tolstoy/issues{/number}","pulls_url":"https://api.github.com/repos/GolosChain/tolstoy/pulls{/number}","milestones_url":"https://api.github.com/repos/GolosChain/tolstoy/milestones{/number}","notifications_url":"https://api.github.com/repos/GolosChain/tolstoy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GolosChain/tolstoy/labels{/name}","releases_url":"https://api.github.com/repos/GolosChain/tolstoy/releases{/id}","deployments_url":"https://api.github.com/repos/GolosChain/tolstoy/deployments","created_at":"2016-08-04T14:30:43Z","updated_at":"2018-10-24T11:04:13Z","pushed_at":"2018-11-23T09:33:42Z","git_url":"git://github.com/GolosChain/tolstoy.git","ssh_url":"git@github.com:GolosChain/tolstoy.git","clone_url":"https://github.com/GolosChain/tolstoy.git","svn_url":"https://github.com/GolosChain/tolstoy","homepage":"https://golos.io","size":39010,"stargazers_count":43,"watchers_count":43,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":35,"mirror_url":null,"archived":false,"open_issues_count":367,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":35,"open_issues":367,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1642"},"html":{"href":"https://github.com/GolosChain/tolstoy/pull/1642"},"issue":{"href":"https://api.github.com/repos/GolosChain/tolstoy/issues/1642"},"comments":{"href":"https://api.github.com/repos/GolosChain/tolstoy/issues/1642/comments"},"review_comments":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1642/comments"},"review_comment":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1642/commits"},"statuses":{"href":"https://api.github.com/repos/GolosChain/tolstoy/statuses/f9e298cf29e86ec94d2dcfb190c68f6ab9c06527"}},"author_association":"NONE"}}
{"actor":{"display_login":"Bacher"}}