{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2017/team6/pulls/comments/181476079","pull_request_review_id":112117933,"id":181476079,"diff_hunk":"@@ -56,6 +58,13 @@ export default class MessagesAPI {\n         return this._addEvent(message.chatId, message.clusterId, event)\n     }\n \n+    static async getMeta(message: Message): Promise<Object> {\n+        const { body: html, url } = await got(message.text)\n+        const metadata = await metascraper({ html, url })","path":"server/api/messages/index.js","position":15,"original_position":15,"commit_id":"7d292bd17fb8a041f9cd5f0292d5270bf5d7a81c","original_commit_id":"7d292bd17fb8a041f9cd5f0292d5270bf5d7a81c","user":{"login":"Damirikys","id":18160651,"avatar_url":"https://avatars3.githubusercontent.com/u/18160651?v=4","gravatar_id":"","url":"https://api.github.com/users/Damirikys","html_url":"https://github.com/Damirikys","followers_url":"https://api.github.com/users/Damirikys/followers","following_url":"https://api.github.com/users/Damirikys/following{/other_user}","gists_url":"https://api.github.com/users/Damirikys/gists{/gist_id}","starred_url":"https://api.github.com/users/Damirikys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Damirikys/subscriptions","organizations_url":"https://api.github.com/users/Damirikys/orgs","repos_url":"https://api.github.com/users/Damirikys/repos","events_url":"https://api.github.com/users/Damirikys/events{/privacy}","received_events_url":"https://api.github.com/users/Damirikys/received_events","type":"User","site_admin":false},"body":"Тут можно сразу \r\n`return metascraper({ html, url })`","created_at":"2018-04-13T18:38:52Z","updated_at":"2018-04-13T18:44:54Z","html_url":"https://github.com/urfu-2017/team6/pull/47#discussion_r181476079","pull_request_url":"https://api.github.com/repos/urfu-2017/team6/pulls/47","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/urfu-2017/team6/pulls/comments/181476079"},"html":{"href":"https://github.com/urfu-2017/team6/pull/47#discussion_r181476079"},"pull_request":{"href":"https://api.github.com/repos/urfu-2017/team6/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2017/team6/pulls/47","id":181564884,"html_url":"https://github.com/urfu-2017/team6/pull/47","diff_url":"https://github.com/urfu-2017/team6/pull/47.diff","patch_url":"https://github.com/urfu-2017/team6/pull/47.patch","issue_url":"https://api.github.com/repos/urfu-2017/team6/issues/47","number":47,"state":"open","locked":false,"title":"Meta","user":{"login":"Xrias","id":27353659,"avatar_url":"https://avatars3.githubusercontent.com/u/27353659?v=4","gravatar_id":"","url":"https://api.github.com/users/Xrias","html_url":"https://github.com/Xrias","followers_url":"https://api.github.com/users/Xrias/followers","following_url":"https://api.github.com/users/Xrias/following{/other_user}","gists_url":"https://api.github.com/users/Xrias/gists{/gist_id}","starred_url":"https://api.github.com/users/Xrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xrias/subscriptions","organizations_url":"https://api.github.com/users/Xrias/orgs","repos_url":"https://api.github.com/users/Xrias/repos","events_url":"https://api.github.com/users/Xrias/events{/privacy}","received_events_url":"https://api.github.com/users/Xrias/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-13T18:35:26Z","updated_at":"2018-04-13T18:44:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d04920da4b8bbe492cc2e642ca968d7e58a1613","assignee":{"login":"Xrias","id":27353659,"avatar_url":"https://avatars3.githubusercontent.com/u/27353659?v=4","gravatar_id":"","url":"https://api.github.com/users/Xrias","html_url":"https://github.com/Xrias","followers_url":"https://api.github.com/users/Xrias/followers","following_url":"https://api.github.com/users/Xrias/following{/other_user}","gists_url":"https://api.github.com/users/Xrias/gists{/gist_id}","starred_url":"https://api.github.com/users/Xrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xrias/subscriptions","organizations_url":"https://api.github.com/users/Xrias/orgs","repos_url":"https://api.github.com/users/Xrias/repos","events_url":"https://api.github.com/users/Xrias/events{/privacy}","received_events_url":"https://api.github.com/users/Xrias/received_events","type":"User","site_admin":false},"assignees":[{"login":"Xrias","id":27353659,"avatar_url":"https://avatars3.githubusercontent.com/u/27353659?v=4","gravatar_id":"","url":"https://api.github.com/users/Xrias","html_url":"https://github.com/Xrias","followers_url":"https://api.github.com/users/Xrias/followers","following_url":"https://api.github.com/users/Xrias/following{/other_user}","gists_url":"https://api.github.com/users/Xrias/gists{/gist_id}","starred_url":"https://api.github.com/users/Xrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xrias/subscriptions","organizations_url":"https://api.github.com/users/Xrias/orgs","repos_url":"https://api.github.com/users/Xrias/repos","events_url":"https://api.github.com/users/Xrias/events{/privacy}","received_events_url":"https://api.github.com/users/Xrias/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"alexSatov","id":22152778,"avatar_url":"https://avatars1.githubusercontent.com/u/22152778?v=4","gravatar_id":"","url":"https://api.github.com/users/alexSatov","html_url":"https://github.com/alexSatov","followers_url":"https://api.github.com/users/alexSatov/followers","following_url":"https://api.github.com/users/alexSatov/following{/other_user}","gists_url":"https://api.github.com/users/alexSatov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexSatov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexSatov/subscriptions","organizations_url":"https://api.github.com/users/alexSatov/orgs","repos_url":"https://api.github.com/users/alexSatov/repos","events_url":"https://api.github.com/users/alexSatov/events{/privacy}","received_events_url":"https://api.github.com/users/alexSatov/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":871138834,"url":"https://api.github.com/repos/urfu-2017/team6/labels/backend","name":"backend","color":"0e8a16","default":false},{"id":871138899,"url":"https://api.github.com/repos/urfu-2017/team6/labels/frontend","name":"frontend","color":"f497b5","default":false}],"milestone":{"url":"https://api.github.com/repos/urfu-2017/team6/milestones/1","html_url":"https://github.com/urfu-2017/team6/milestone/1","labels_url":"https://api.github.com/repos/urfu-2017/team6/milestones/1/labels","id":3195693,"number":1,"title":"Deadline","description":"","creator":{"login":"Damirikys","id":18160651,"avatar_url":"https://avatars3.githubusercontent.com/u/18160651?v=4","gravatar_id":"","url":"https://api.github.com/users/Damirikys","html_url":"https://github.com/Damirikys","followers_url":"https://api.github.com/users/Damirikys/followers","following_url":"https://api.github.com/users/Damirikys/following{/other_user}","gists_url":"https://api.github.com/users/Damirikys/gists{/gist_id}","starred_url":"https://api.github.com/users/Damirikys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Damirikys/subscriptions","organizations_url":"https://api.github.com/users/Damirikys/orgs","repos_url":"https://api.github.com/users/Damirikys/repos","events_url":"https://api.github.com/users/Damirikys/events{/privacy}","received_events_url":"https://api.github.com/users/Damirikys/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":17,"state":"open","created_at":"2018-03-18T10:39:37Z","updated_at":"2018-04-13T18:37:29Z","due_on":"2018-04-15T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/urfu-2017/team6/pulls/47/commits","review_comments_url":"https://api.github.com/repos/urfu-2017/team6/pulls/47/comments","review_comment_url":"https://api.github.com/repos/urfu-2017/team6/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2017/team6/issues/47/comments","statuses_url":"https://api.github.com/repos/urfu-2017/team6/statuses/7d292bd17fb8a041f9cd5f0292d5270bf5d7a81c","head":{"label":"urfu-2017:Meta","ref":"Meta","sha":"7d292bd17fb8a041f9cd5f0292d5270bf5d7a81c","user":{"login":"urfu-2017","id":31925391,"avatar_url":"https://avatars1.githubusercontent.com/u/31925391?v=4","gravatar_id":"","url":"https://api.github.com/users/urfu-2017","html_url":"https://github.com/urfu-2017","followers_url":"https://api.github.com/users/urfu-2017/followers","following_url":"https://api.github.com/users/urfu-2017/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2017/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2017/subscriptions","organizations_url":"https://api.github.com/users/urfu-2017/orgs","repos_url":"https://api.github.com/users/urfu-2017/repos","events_url":"https://api.github.com/users/urfu-2017/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2017/received_events","type":"Organization","site_admin":false},"repo":{"id":125696814,"name":"team6","full_name":"urfu-2017/team6","owner":{"login":"urfu-2017","id":31925391,"avatar_url":"https://avatars1.githubusercontent.com/u/31925391?v=4","gravatar_id":"","url":"https://api.github.com/users/urfu-2017","html_url":"https://github.com/urfu-2017","followers_url":"https://api.github.com/users/urfu-2017/followers","following_url":"https://api.github.com/users/urfu-2017/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2017/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2017/subscriptions","organizations_url":"https://api.github.com/users/urfu-2017/orgs","repos_url":"https://api.github.com/users/urfu-2017/repos","events_url":"https://api.github.com/users/urfu-2017/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2017/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2017/team6","description":"Kilogram Messenger by Team#6","fork":false,"url":"https://api.github.com/repos/urfu-2017/team6","forks_url":"https://api.github.com/repos/urfu-2017/team6/forks","keys_url":"https://api.github.com/repos/urfu-2017/team6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2017/team6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2017/team6/teams","hooks_url":"https://api.github.com/repos/urfu-2017/team6/hooks","issue_events_url":"https://api.github.com/repos/urfu-2017/team6/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2017/team6/events","assignees_url":"https://api.github.com/repos/urfu-2017/team6/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2017/team6/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2017/team6/tags","blobs_url":"https://api.github.com/repos/urfu-2017/team6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2017/team6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2017/team6/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2017/team6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2017/team6/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2017/team6/languages","stargazers_url":"https://api.github.com/repos/urfu-2017/team6/stargazers","contributors_url":"https://api.github.com/repos/urfu-2017/team6/contributors","subscribers_url":"https://api.github.com/repos/urfu-2017/team6/subscribers","subscription_url":"https://api.github.com/repos/urfu-2017/team6/subscription","commits_url":"https://api.github.com/repos/urfu-2017/team6/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2017/team6/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2017/team6/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2017/team6/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2017/team6/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2017/team6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2017/team6/merges","archive_url":"https://api.github.com/repos/urfu-2017/team6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2017/team6/downloads","issues_url":"https://api.github.com/repos/urfu-2017/team6/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2017/team6/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2017/team6/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2017/team6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2017/team6/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2017/team6/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2017/team6/deployments","created_at":"2018-03-18T05:54:22Z","updated_at":"2018-04-03T10:11:29Z","pushed_at":"2018-04-13T18:35:27Z","git_url":"git://github.com/urfu-2017/team6.git","ssh_url":"git@github.com:urfu-2017/team6.git","clone_url":"https://github.com/urfu-2017/team6.git","svn_url":"https://github.com/urfu-2017/team6","homepage":"","size":191,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":18,"license":null,"forks":0,"open_issues":18,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2017:develop","ref":"develop","sha":"f89413ca02991af23d659f315567b302a11e0653","user":{"login":"urfu-2017","id":31925391,"avatar_url":"https://avatars1.githubusercontent.com/u/31925391?v=4","gravatar_id":"","url":"https://api.github.com/users/urfu-2017","html_url":"https://github.com/urfu-2017","followers_url":"https://api.github.com/users/urfu-2017/followers","following_url":"https://api.github.com/users/urfu-2017/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2017/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2017/subscriptions","organizations_url":"https://api.github.com/users/urfu-2017/orgs","repos_url":"https://api.github.com/users/urfu-2017/repos","events_url":"https://api.github.com/users/urfu-2017/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2017/received_events","type":"Organization","site_admin":false},"repo":{"id":125696814,"name":"team6","full_name":"urfu-2017/team6","owner":{"login":"urfu-2017","id":31925391,"avatar_url":"https://avatars1.githubusercontent.com/u/31925391?v=4","gravatar_id":"","url":"https://api.github.com/users/urfu-2017","html_url":"https://github.com/urfu-2017","followers_url":"https://api.github.com/users/urfu-2017/followers","following_url":"https://api.github.com/users/urfu-2017/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2017/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2017/subscriptions","organizations_url":"https://api.github.com/users/urfu-2017/orgs","repos_url":"https://api.github.com/users/urfu-2017/repos","events_url":"https://api.github.com/users/urfu-2017/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2017/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2017/team6","description":"Kilogram Messenger by Team#6","fork":false,"url":"https://api.github.com/repos/urfu-2017/team6","forks_url":"https://api.github.com/repos/urfu-2017/team6/forks","keys_url":"https://api.github.com/repos/urfu-2017/team6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2017/team6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2017/team6/teams","hooks_url":"https://api.github.com/repos/urfu-2017/team6/hooks","issue_events_url":"https://api.github.com/repos/urfu-2017/team6/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2017/team6/events","assignees_url":"https://api.github.com/repos/urfu-2017/team6/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2017/team6/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2017/team6/tags","blobs_url":"https://api.github.com/repos/urfu-2017/team6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2017/team6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2017/team6/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2017/team6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2017/team6/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2017/team6/languages","stargazers_url":"https://api.github.com/repos/urfu-2017/team6/stargazers","contributors_url":"https://api.github.com/repos/urfu-2017/team6/contributors","subscribers_url":"https://api.github.com/repos/urfu-2017/team6/subscribers","subscription_url":"https://api.github.com/repos/urfu-2017/team6/subscription","commits_url":"https://api.github.com/repos/urfu-2017/team6/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2017/team6/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2017/team6/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2017/team6/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2017/team6/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2017/team6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2017/team6/merges","archive_url":"https://api.github.com/repos/urfu-2017/team6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2017/team6/downloads","issues_url":"https://api.github.com/repos/urfu-2017/team6/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2017/team6/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2017/team6/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2017/team6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2017/team6/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2017/team6/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2017/team6/deployments","created_at":"2018-03-18T05:54:22Z","updated_at":"2018-04-03T10:11:29Z","pushed_at":"2018-04-13T18:35:27Z","git_url":"git://github.com/urfu-2017/team6.git","ssh_url":"git@github.com:urfu-2017/team6.git","clone_url":"https://github.com/urfu-2017/team6.git","svn_url":"https://github.com/urfu-2017/team6","homepage":"","size":191,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":18,"license":null,"forks":0,"open_issues":18,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2017/team6/pulls/47"},"html":{"href":"https://github.com/urfu-2017/team6/pull/47"},"issue":{"href":"https://api.github.com/repos/urfu-2017/team6/issues/47"},"comments":{"href":"https://api.github.com/repos/urfu-2017/team6/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2017/team6/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2017/team6/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2017/team6/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2017/team6/statuses/7d292bd17fb8a041f9cd5f0292d5270bf5d7a81c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Damirikys"}}