{"action":"created","comment":{"url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/comments/228198174","pull_request_review_id":168407437,"id":228198174,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODE5ODE3NA==","diff_hunk":"@@ -0,0 +1,63 @@\n+import { connect } from 'react-redux';\n+import { List, Map } from 'immutable';\n+\n+import constants from 'app/redux/constants';\n+import { IGNORE_TAGS } from 'app/client_config';\n+import { changeHomeTagsCardCollapse } from 'src/app/redux/actions/ui';\n+import { saveTag } from 'src/app/redux/actions/tags';\n+import {\n+    createDeepEqualSelector,\n+    uiSelector,\n+    dataSelector,\n+    globalSelector,\n+    routeParamSelector,\n+} from 'src/app/redux/selectors/common';\n+\n+import TagsCard from './TagsCard';\n+\n+const emptyList = List();\n+\n+export default connect(\n+    createDeepEqualSelector(\n+        [\n+            uiSelector('home'),\n+            dataSelector('settings'),\n+            globalSelector(['tag_idx', 'trending'], emptyList),\n+            routeParamSelector('category', ''),\n+            routeParamSelector('order', constants.DEFAULT_SORT_ORDER),\n+        ],\n+        (uiHome, settings, trendingTags, category, order) => {\n+            if (category === 'feed') {\n+                order = 'by_feed';\n+            }\n+\n+            const collapsed = uiHome.get('tagsCollapsed');\n+\n+            const tags = trendingTags\n+                // filter wrong tags\n+                .map(tag => {\n+                    if (/^(u\\w{4}){6,}/.test(tag)) {\n+                        return null;\n+                    }\n+                    return tag;\n+                })\n+                // filter ignore tags and wrong tags\n+                .filter(tag => tag !== null && IGNORE_TAGS.indexOf(tag) === -1)","path":"src/app/components/home/sidebar/TagsCard/TagsCard.connect.js","position":45,"original_position":45,"commit_id":"38d3dcbe3f907a504895a249ea7080ecf65ba6c1","original_commit_id":"38d3dcbe3f907a504895a249ea7080ecf65ba6c1","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":"Вместо `indexOf === -1` есть `includes()`","created_at":"2018-10-25T14:32:31Z","updated_at":"2018-10-25T14:48:15Z","html_url":"https://github.com/GolosChain/tolstoy/pull/1215#discussion_r228198174","pull_request_url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1215","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/comments/228198174"},"html":{"href":"https://github.com/GolosChain/tolstoy/pull/1215#discussion_r228198174"},"pull_request":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1215"}}},"pull_request":{"url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1215","id":225776409,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1Nzc2NDA5","html_url":"https://github.com/GolosChain/tolstoy/pull/1215","diff_url":"https://github.com/GolosChain/tolstoy/pull/1215.diff","patch_url":"https://github.com/GolosChain/tolstoy/pull/1215.patch","issue_url":"https://api.github.com/repos/GolosChain/tolstoy/issues/1215","number":1215,"state":"open","locked":false,"title":"988 tags","user":{"login":"beautyfree","id":656531,"node_id":"MDQ6VXNlcjY1NjUzMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/656531?v=4","gravatar_id":"","url":"https://api.github.com/users/beautyfree","html_url":"https://github.com/beautyfree","followers_url":"https://api.github.com/users/beautyfree/followers","following_url":"https://api.github.com/users/beautyfree/following{/other_user}","gists_url":"https://api.github.com/users/beautyfree/gists{/gist_id}","starred_url":"https://api.github.com/users/beautyfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beautyfree/subscriptions","organizations_url":"https://api.github.com/users/beautyfree/orgs","repos_url":"https://api.github.com/users/beautyfree/repos","events_url":"https://api.github.com/users/beautyfree/events{/privacy}","received_events_url":"https://api.github.com/users/beautyfree/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-25T14:14:02Z","updated_at":"2018-10-25T14:48:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d6bef14cb99dd705496dcd76b89771bcfff00fe","assignee":null,"assignees":[],"requested_reviewers":[{"login":"b1acksun","id":3322340,"node_id":"MDQ6VXNlcjMzMjIzNDA=","avatar_url":"https://avatars1.githubusercontent.com/u/3322340?v=4","gravatar_id":"","url":"https://api.github.com/users/b1acksun","html_url":"https://github.com/b1acksun","followers_url":"https://api.github.com/users/b1acksun/followers","following_url":"https://api.github.com/users/b1acksun/following{/other_user}","gists_url":"https://api.github.com/users/b1acksun/gists{/gist_id}","starred_url":"https://api.github.com/users/b1acksun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b1acksun/subscriptions","organizations_url":"https://api.github.com/users/b1acksun/orgs","repos_url":"https://api.github.com/users/b1acksun/repos","events_url":"https://api.github.com/users/b1acksun/events{/privacy}","received_events_url":"https://api.github.com/users/b1acksun/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1215/commits","review_comments_url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1215/comments","review_comment_url":"https://api.github.com/repos/GolosChain/tolstoy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GolosChain/tolstoy/issues/1215/comments","statuses_url":"https://api.github.com/repos/GolosChain/tolstoy/statuses/38d3dcbe3f907a504895a249ea7080ecf65ba6c1","head":{"label":"GolosChain:988_tags","ref":"988_tags","sha":"38d3dcbe3f907a504895a249ea7080ecf65ba6c1","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-10-25T14:17:30Z","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":37511,"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":274,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":35,"open_issues":274,"watchers":43,"default_branch":"master"}},"base":{"label":"GolosChain:redesign-refactoring","ref":"redesign-refactoring","sha":"3c027d6f5b1300127d41ad65c0a1f6b2e8b458f5","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-10-25T14:17:30Z","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":37511,"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":274,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":35,"open_issues":274,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1215"},"html":{"href":"https://github.com/GolosChain/tolstoy/pull/1215"},"issue":{"href":"https://api.github.com/repos/GolosChain/tolstoy/issues/1215"},"comments":{"href":"https://api.github.com/repos/GolosChain/tolstoy/issues/1215/comments"},"review_comments":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1215/comments"},"review_comment":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GolosChain/tolstoy/pulls/1215/commits"},"statuses":{"href":"https://api.github.com/repos/GolosChain/tolstoy/statuses/38d3dcbe3f907a504895a249ea7080ecf65ba6c1"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"Bacher"}}