{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/comments/155650816","pull_request_review_id":82005554,"id":155650816,"diff_hunk":"@@ -82,18 +96,29 @@ var showOverlayPreview = function (evt) {\n   comments.textContent = currentImage.querySelectorAll('.picture-comments').length;\n };\n \n-var usersPhotos = generateDataArray(25);\n+var checkHashTags = function (str) {\n+  if (!str) {\n+    return true;\n+  }\n \n-pictures.appendChild(collectPhotos(usersPhotos, renderPhoto));\n+  var arr = str.match(/(#[\\wа-яё]{1,19} {1}){0,4}(#[\\wа-яё]{1,19}){1}/gi)[0].split(' ');\n+  var obj = {};\n \n-pictures.addEventListener('click', function (evt) {\n-  evt.preventDefault();\n+  if (!arr || str !== arr.join(' ')) {\n+    return false;\n+  }\n \n-  var clickedElement = evt.target.closest('.picture');\n+  for (var i = 0; i < arr.length; i++) {\n+    var value = arr[i];\n+    obj[value] = true;\n+  }\n \n-  showOverlayPreview(clickedElement);\n-  onOverlayPreviewOpen();\n-});\n+  if (arr.length !== Object.keys(obj).length) {","path":"js/pictures.js","position":54,"original_position":54,"commit_id":"ec8a090aceeb0ba4ecc11bb54a10603bf52330ee","original_commit_id":"ec8a090aceeb0ba4ecc11bb54a10603bf52330ee","user":{"login":"StGeass","id":906496,"avatar_url":"https://avatars1.githubusercontent.com/u/906496?v=4","gravatar_id":"","url":"https://api.github.com/users/StGeass","html_url":"https://github.com/StGeass","followers_url":"https://api.github.com/users/StGeass/followers","following_url":"https://api.github.com/users/StGeass/following{/other_user}","gists_url":"https://api.github.com/users/StGeass/gists{/gist_id}","starred_url":"https://api.github.com/users/StGeass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StGeass/subscriptions","organizations_url":"https://api.github.com/users/StGeass/orgs","repos_url":"https://api.github.com/users/StGeass/repos","events_url":"https://api.github.com/users/StGeass/events{/privacy}","received_events_url":"https://api.github.com/users/StGeass/received_events","type":"User","site_admin":false},"body":"Не понял смысла проверки, оно разве не всегда ложно?","created_at":"2017-12-07T21:48:20Z","updated_at":"2017-12-07T21:51:54Z","html_url":"https://github.com/htmlacademy-javascript/139086-kekstagram/pull/4#discussion_r155650816","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/comments/155650816"},"html":{"href":"https://github.com/htmlacademy-javascript/139086-kekstagram/pull/4#discussion_r155650816"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/4","id":156042337,"html_url":"https://github.com/htmlacademy-javascript/139086-kekstagram/pull/4","diff_url":"https://github.com/htmlacademy-javascript/139086-kekstagram/pull/4.diff","patch_url":"https://github.com/htmlacademy-javascript/139086-kekstagram/pull/4.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/issues/4","number":4,"state":"open","locked":false,"title":"Личный проект: доверяй, но проверяй","user":{"login":"estaticfear2","id":22945388,"avatar_url":"https://avatars1.githubusercontent.com/u/22945388?v=4","gravatar_id":"","url":"https://api.github.com/users/estaticfear2","html_url":"https://github.com/estaticfear2","followers_url":"https://api.github.com/users/estaticfear2/followers","following_url":"https://api.github.com/users/estaticfear2/following{/other_user}","gists_url":"https://api.github.com/users/estaticfear2/gists{/gist_id}","starred_url":"https://api.github.com/users/estaticfear2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estaticfear2/subscriptions","organizations_url":"https://api.github.com/users/estaticfear2/orgs","repos_url":"https://api.github.com/users/estaticfear2/repos","events_url":"https://api.github.com/users/estaticfear2/events{/privacy}","received_events_url":"https://api.github.com/users/estaticfear2/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Личный проект: доверяй, но проверяй](https://up.htmlacademy.ru/javascript/11/user/139086/tasks/14)\n\n:boom: https://htmlacademy-javascript.github.io/139086-kekstagram/4/","created_at":"2017-12-03T02:28:36Z","updated_at":"2017-12-07T21:51:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d56b379c483ff1cb8edfd69bf9068d8f8a9dd9dd","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/4/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/4/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/issues/4/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/statuses/ec8a090aceeb0ba4ecc11bb54a10603bf52330ee","head":{"label":"estaticfear2:module4-task2","ref":"module4-task2","sha":"ec8a090aceeb0ba4ecc11bb54a10603bf52330ee","user":{"login":"estaticfear2","id":22945388,"avatar_url":"https://avatars1.githubusercontent.com/u/22945388?v=4","gravatar_id":"","url":"https://api.github.com/users/estaticfear2","html_url":"https://github.com/estaticfear2","followers_url":"https://api.github.com/users/estaticfear2/followers","following_url":"https://api.github.com/users/estaticfear2/following{/other_user}","gists_url":"https://api.github.com/users/estaticfear2/gists{/gist_id}","starred_url":"https://api.github.com/users/estaticfear2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estaticfear2/subscriptions","organizations_url":"https://api.github.com/users/estaticfear2/orgs","repos_url":"https://api.github.com/users/estaticfear2/repos","events_url":"https://api.github.com/users/estaticfear2/events{/privacy}","received_events_url":"https://api.github.com/users/estaticfear2/received_events","type":"User","site_admin":false},"repo":{"id":110755572,"name":"139086-kekstagram","full_name":"estaticfear2/139086-kekstagram","owner":{"login":"estaticfear2","id":22945388,"avatar_url":"https://avatars1.githubusercontent.com/u/22945388?v=4","gravatar_id":"","url":"https://api.github.com/users/estaticfear2","html_url":"https://github.com/estaticfear2","followers_url":"https://api.github.com/users/estaticfear2/followers","following_url":"https://api.github.com/users/estaticfear2/following{/other_user}","gists_url":"https://api.github.com/users/estaticfear2/gists{/gist_id}","starred_url":"https://api.github.com/users/estaticfear2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estaticfear2/subscriptions","organizations_url":"https://api.github.com/users/estaticfear2/orgs","repos_url":"https://api.github.com/users/estaticfear2/repos","events_url":"https://api.github.com/users/estaticfear2/events{/privacy}","received_events_url":"https://api.github.com/users/estaticfear2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/estaticfear2/139086-kekstagram","description":"Вячеслав Сливка","fork":true,"url":"https://api.github.com/repos/estaticfear2/139086-kekstagram","forks_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/forks","keys_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/teams","hooks_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/events","assignees_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/tags","blobs_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/languages","stargazers_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/subscription","commits_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/merges","archive_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/downloads","issues_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/estaticfear2/139086-kekstagram/deployments","created_at":"2017-11-14T23:09:52Z","updated_at":"2017-11-14T23:09:54Z","pushed_at":"2017-12-04T23:17:37Z","git_url":"git://github.com/estaticfear2/139086-kekstagram.git","ssh_url":"git@github.com:estaticfear2/139086-kekstagram.git","clone_url":"https://github.com/estaticfear2/139086-kekstagram.git","svn_url":"https://github.com/estaticfear2/139086-kekstagram","homepage":null,"size":4340,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"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":"htmlacademy-javascript:master","ref":"master","sha":"c503d6ead8f995fbaac7d2d6a00f36875f288e32","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":110755089,"name":"139086-kekstagram","full_name":"htmlacademy-javascript/139086-kekstagram","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/139086-kekstagram","description":"Вячеслав Сливка","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram","forks_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/deployments","created_at":"2017-11-14T23:03:26Z","updated_at":"2017-11-15T00:05:23Z","pushed_at":"2017-12-04T23:19:45Z","git_url":"git://github.com/htmlacademy-javascript/139086-kekstagram.git","ssh_url":"git@github.com:htmlacademy-javascript/139086-kekstagram.git","clone_url":"https://github.com/htmlacademy-javascript/139086-kekstagram.git","svn_url":"https://github.com/htmlacademy-javascript/139086-kekstagram","homepage":"https://github.com/estaticfear2/139086-kekstagram","size":4352,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/4"},"html":{"href":"https://github.com/htmlacademy-javascript/139086-kekstagram/pull/4"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/issues/4"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/139086-kekstagram/statuses/ec8a090aceeb0ba4ecc11bb54a10603bf52330ee"}},"author_association":"NONE"}}
{"actor":{"display_login":"StGeass"}}