{"action":"created","comment":{"url":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/comments/223864613","pull_request_review_id":163098403,"id":223864613,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzg2NDYxMw==","diff_hunk":"@@ -51,25 +52,31 @@ class Cropper extends React.Component {\n \n   save = e => {\n     e.preventDefault();\n+    e.persist();\n+\n+    const small = this.croppie.result({\n+      type: 'blob',\n+      size: { width: 64, height: 64 },\n+      quality: 0.5,\n+      format: 'png',\n+      circle: true\n+    });\n \n-    this.croppie\n-      .result({\n-        type: 'blob',\n-        size: { width: 300, height: 300 },\n-        quality: 0.75,\n-        circle: true\n-      })\n-      .then(blob => {\n-        blob.name = this.state.file.name;\n-        this.props.onChange(blob);\n-\n-        if (this.croppie) {\n-          this.croppie.destroy();\n-          this.croppie = null;\n-        }\n-\n-        this.setState({ activeCrop: false });\n-      });\n+    const large = this.croppie.result({\n+      type: 'blob',\n+      size: { width: 300, height: 300 },\n+      quality: 0.75,\n+      format: 'png',\n+      circle: true\n+    });\n+\n+    Promise.all([small, large]).then(([smallBlob, largeBlob]) => {\n+      smallBlob.name = this.state.file.name;\n+      largeBlob.name = this.state.file.name;\n+\n+      this.props.onChange(smallBlob, largeBlob);\n+      this.removeCroppie(e);\n+    });","path":"src/components/Cropper/index.js","position":54,"original_position":54,"commit_id":"d511546de9148b963fb20cd717dcafeced23ab7e","original_commit_id":"d511546de9148b963fb20cd717dcafeced23ab7e","user":{"login":"villanuevawill","id":7415822,"node_id":"MDQ6VXNlcjc0MTU4MjI=","avatar_url":"https://avatars1.githubusercontent.com/u/7415822?v=4","gravatar_id":"","url":"https://api.github.com/users/villanuevawill","html_url":"https://github.com/villanuevawill","followers_url":"https://api.github.com/users/villanuevawill/followers","following_url":"https://api.github.com/users/villanuevawill/following{/other_user}","gists_url":"https://api.github.com/users/villanuevawill/gists{/gist_id}","starred_url":"https://api.github.com/users/villanuevawill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/villanuevawill/subscriptions","organizations_url":"https://api.github.com/users/villanuevawill/orgs","repos_url":"https://api.github.com/users/villanuevawill/repos","events_url":"https://api.github.com/users/villanuevawill/events{/privacy}","received_events_url":"https://api.github.com/users/villanuevawill/received_events","type":"User","site_admin":false},"body":"verrrry nicceeee","created_at":"2018-10-09T21:09:06Z","updated_at":"2018-10-09T21:09:06Z","html_url":"https://github.com/Bounties-Network/Explorer/pull/210#discussion_r223864613","pull_request_url":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/210","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/comments/223864613"},"html":{"href":"https://github.com/Bounties-Network/Explorer/pull/210#discussion_r223864613"},"pull_request":{"href":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/210"}}},"pull_request":{"url":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/210","id":220107975,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMTA3OTc1","html_url":"https://github.com/Bounties-Network/Explorer/pull/210","diff_url":"https://github.com/Bounties-Network/Explorer/pull/210.diff","patch_url":"https://github.com/Bounties-Network/Explorer/pull/210.patch","issue_url":"https://api.github.com/repos/Bounties-Network/Explorer/issues/210","number":210,"state":"open","locked":false,"title":"Save profile images directly to s3","user":{"login":"c-o-l-o-r","id":14004106,"node_id":"MDQ6VXNlcjE0MDA0MTA2","avatar_url":"https://avatars3.githubusercontent.com/u/14004106?v=4","gravatar_id":"","url":"https://api.github.com/users/c-o-l-o-r","html_url":"https://github.com/c-o-l-o-r","followers_url":"https://api.github.com/users/c-o-l-o-r/followers","following_url":"https://api.github.com/users/c-o-l-o-r/following{/other_user}","gists_url":"https://api.github.com/users/c-o-l-o-r/gists{/gist_id}","starred_url":"https://api.github.com/users/c-o-l-o-r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-o-l-o-r/subscriptions","organizations_url":"https://api.github.com/users/c-o-l-o-r/orgs","repos_url":"https://api.github.com/users/c-o-l-o-r/repos","events_url":"https://api.github.com/users/c-o-l-o-r/events{/privacy}","received_events_url":"https://api.github.com/users/c-o-l-o-r/received_events","type":"User","site_admin":false},"body":"@villanuevawill @codeluggage this is the frontend portion of removing our dependence on IPFS for uploading profile images. I still have a little work on the API, but I think this part is pretty close to done. I'd like to get it all on staging ASAP so I can do more testing.","created_at":"2018-10-03T16:52:01Z","updated_at":"2018-10-09T21:09:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc26773d6ef7f74d82b2acdf6ce40fa28906dd4d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/210/commits","review_comments_url":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/210/comments","review_comment_url":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bounties-Network/Explorer/issues/210/comments","statuses_url":"https://api.github.com/repos/Bounties-Network/Explorer/statuses/d511546de9148b963fb20cd717dcafeced23ab7e","head":{"label":"Bounties-Network:feature-profile-images-saved-directly-to-s3","ref":"feature-profile-images-saved-directly-to-s3","sha":"d511546de9148b963fb20cd717dcafeced23ab7e","user":{"login":"Bounties-Network","id":37050912,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDUwOTEy","avatar_url":"https://avatars2.githubusercontent.com/u/37050912?v=4","gravatar_id":"","url":"https://api.github.com/users/Bounties-Network","html_url":"https://github.com/Bounties-Network","followers_url":"https://api.github.com/users/Bounties-Network/followers","following_url":"https://api.github.com/users/Bounties-Network/following{/other_user}","gists_url":"https://api.github.com/users/Bounties-Network/gists{/gist_id}","starred_url":"https://api.github.com/users/Bounties-Network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bounties-Network/subscriptions","organizations_url":"https://api.github.com/users/Bounties-Network/orgs","repos_url":"https://api.github.com/users/Bounties-Network/repos","events_url":"https://api.github.com/users/Bounties-Network/events{/privacy}","received_events_url":"https://api.github.com/users/Bounties-Network/received_events","type":"Organization","site_admin":false},"repo":{"id":129211201,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkyMTEyMDE=","name":"Explorer","full_name":"Bounties-Network/Explorer","private":false,"owner":{"login":"Bounties-Network","id":37050912,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDUwOTEy","avatar_url":"https://avatars2.githubusercontent.com/u/37050912?v=4","gravatar_id":"","url":"https://api.github.com/users/Bounties-Network","html_url":"https://github.com/Bounties-Network","followers_url":"https://api.github.com/users/Bounties-Network/followers","following_url":"https://api.github.com/users/Bounties-Network/following{/other_user}","gists_url":"https://api.github.com/users/Bounties-Network/gists{/gist_id}","starred_url":"https://api.github.com/users/Bounties-Network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bounties-Network/subscriptions","organizations_url":"https://api.github.com/users/Bounties-Network/orgs","repos_url":"https://api.github.com/users/Bounties-Network/repos","events_url":"https://api.github.com/users/Bounties-Network/events{/privacy}","received_events_url":"https://api.github.com/users/Bounties-Network/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Bounties-Network/Explorer","description":null,"fork":false,"url":"https://api.github.com/repos/Bounties-Network/Explorer","forks_url":"https://api.github.com/repos/Bounties-Network/Explorer/forks","keys_url":"https://api.github.com/repos/Bounties-Network/Explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bounties-Network/Explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bounties-Network/Explorer/teams","hooks_url":"https://api.github.com/repos/Bounties-Network/Explorer/hooks","issue_events_url":"https://api.github.com/repos/Bounties-Network/Explorer/issues/events{/number}","events_url":"https://api.github.com/repos/Bounties-Network/Explorer/events","assignees_url":"https://api.github.com/repos/Bounties-Network/Explorer/assignees{/user}","branches_url":"https://api.github.com/repos/Bounties-Network/Explorer/branches{/branch}","tags_url":"https://api.github.com/repos/Bounties-Network/Explorer/tags","blobs_url":"https://api.github.com/repos/Bounties-Network/Explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bounties-Network/Explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bounties-Network/Explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bounties-Network/Explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bounties-Network/Explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/Bounties-Network/Explorer/languages","stargazers_url":"https://api.github.com/repos/Bounties-Network/Explorer/stargazers","contributors_url":"https://api.github.com/repos/Bounties-Network/Explorer/contributors","subscribers_url":"https://api.github.com/repos/Bounties-Network/Explorer/subscribers","subscription_url":"https://api.github.com/repos/Bounties-Network/Explorer/subscription","commits_url":"https://api.github.com/repos/Bounties-Network/Explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bounties-Network/Explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bounties-Network/Explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bounties-Network/Explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bounties-Network/Explorer/contents/{+path}","compare_url":"https://api.github.com/repos/Bounties-Network/Explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bounties-Network/Explorer/merges","archive_url":"https://api.github.com/repos/Bounties-Network/Explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bounties-Network/Explorer/downloads","issues_url":"https://api.github.com/repos/Bounties-Network/Explorer/issues{/number}","pulls_url":"https://api.github.com/repos/Bounties-Network/Explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/Bounties-Network/Explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/Bounties-Network/Explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bounties-Network/Explorer/labels{/name}","releases_url":"https://api.github.com/repos/Bounties-Network/Explorer/releases{/id}","deployments_url":"https://api.github.com/repos/Bounties-Network/Explorer/deployments","created_at":"2018-04-12T07:30:53Z","updated_at":"2018-10-09T19:42:05Z","pushed_at":"2018-10-09T20:39:35Z","git_url":"git://github.com/Bounties-Network/Explorer.git","ssh_url":"git@github.com:Bounties-Network/Explorer.git","clone_url":"https://github.com/Bounties-Network/Explorer.git","svn_url":"https://github.com/Bounties-Network/Explorer","homepage":null,"size":5038,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":2,"open_issues":4,"watchers":7,"default_branch":"master"}},"base":{"label":"Bounties-Network:master","ref":"master","sha":"0dea900de419a0a0eb906e5387bef006dc7ff16e","user":{"login":"Bounties-Network","id":37050912,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDUwOTEy","avatar_url":"https://avatars2.githubusercontent.com/u/37050912?v=4","gravatar_id":"","url":"https://api.github.com/users/Bounties-Network","html_url":"https://github.com/Bounties-Network","followers_url":"https://api.github.com/users/Bounties-Network/followers","following_url":"https://api.github.com/users/Bounties-Network/following{/other_user}","gists_url":"https://api.github.com/users/Bounties-Network/gists{/gist_id}","starred_url":"https://api.github.com/users/Bounties-Network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bounties-Network/subscriptions","organizations_url":"https://api.github.com/users/Bounties-Network/orgs","repos_url":"https://api.github.com/users/Bounties-Network/repos","events_url":"https://api.github.com/users/Bounties-Network/events{/privacy}","received_events_url":"https://api.github.com/users/Bounties-Network/received_events","type":"Organization","site_admin":false},"repo":{"id":129211201,"node_id":"MDEwOlJlcG9zaXRvcnkxMjkyMTEyMDE=","name":"Explorer","full_name":"Bounties-Network/Explorer","private":false,"owner":{"login":"Bounties-Network","id":37050912,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3MDUwOTEy","avatar_url":"https://avatars2.githubusercontent.com/u/37050912?v=4","gravatar_id":"","url":"https://api.github.com/users/Bounties-Network","html_url":"https://github.com/Bounties-Network","followers_url":"https://api.github.com/users/Bounties-Network/followers","following_url":"https://api.github.com/users/Bounties-Network/following{/other_user}","gists_url":"https://api.github.com/users/Bounties-Network/gists{/gist_id}","starred_url":"https://api.github.com/users/Bounties-Network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bounties-Network/subscriptions","organizations_url":"https://api.github.com/users/Bounties-Network/orgs","repos_url":"https://api.github.com/users/Bounties-Network/repos","events_url":"https://api.github.com/users/Bounties-Network/events{/privacy}","received_events_url":"https://api.github.com/users/Bounties-Network/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Bounties-Network/Explorer","description":null,"fork":false,"url":"https://api.github.com/repos/Bounties-Network/Explorer","forks_url":"https://api.github.com/repos/Bounties-Network/Explorer/forks","keys_url":"https://api.github.com/repos/Bounties-Network/Explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bounties-Network/Explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bounties-Network/Explorer/teams","hooks_url":"https://api.github.com/repos/Bounties-Network/Explorer/hooks","issue_events_url":"https://api.github.com/repos/Bounties-Network/Explorer/issues/events{/number}","events_url":"https://api.github.com/repos/Bounties-Network/Explorer/events","assignees_url":"https://api.github.com/repos/Bounties-Network/Explorer/assignees{/user}","branches_url":"https://api.github.com/repos/Bounties-Network/Explorer/branches{/branch}","tags_url":"https://api.github.com/repos/Bounties-Network/Explorer/tags","blobs_url":"https://api.github.com/repos/Bounties-Network/Explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bounties-Network/Explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bounties-Network/Explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bounties-Network/Explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bounties-Network/Explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/Bounties-Network/Explorer/languages","stargazers_url":"https://api.github.com/repos/Bounties-Network/Explorer/stargazers","contributors_url":"https://api.github.com/repos/Bounties-Network/Explorer/contributors","subscribers_url":"https://api.github.com/repos/Bounties-Network/Explorer/subscribers","subscription_url":"https://api.github.com/repos/Bounties-Network/Explorer/subscription","commits_url":"https://api.github.com/repos/Bounties-Network/Explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bounties-Network/Explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bounties-Network/Explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bounties-Network/Explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bounties-Network/Explorer/contents/{+path}","compare_url":"https://api.github.com/repos/Bounties-Network/Explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bounties-Network/Explorer/merges","archive_url":"https://api.github.com/repos/Bounties-Network/Explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bounties-Network/Explorer/downloads","issues_url":"https://api.github.com/repos/Bounties-Network/Explorer/issues{/number}","pulls_url":"https://api.github.com/repos/Bounties-Network/Explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/Bounties-Network/Explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/Bounties-Network/Explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bounties-Network/Explorer/labels{/name}","releases_url":"https://api.github.com/repos/Bounties-Network/Explorer/releases{/id}","deployments_url":"https://api.github.com/repos/Bounties-Network/Explorer/deployments","created_at":"2018-04-12T07:30:53Z","updated_at":"2018-10-09T19:42:05Z","pushed_at":"2018-10-09T20:39:35Z","git_url":"git://github.com/Bounties-Network/Explorer.git","ssh_url":"git@github.com:Bounties-Network/Explorer.git","clone_url":"https://github.com/Bounties-Network/Explorer.git","svn_url":"https://github.com/Bounties-Network/Explorer","homepage":null,"size":5038,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":2,"open_issues":4,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/210"},"html":{"href":"https://github.com/Bounties-Network/Explorer/pull/210"},"issue":{"href":"https://api.github.com/repos/Bounties-Network/Explorer/issues/210"},"comments":{"href":"https://api.github.com/repos/Bounties-Network/Explorer/issues/210/comments"},"review_comments":{"href":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/210/comments"},"review_comment":{"href":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bounties-Network/Explorer/pulls/210/commits"},"statuses":{"href":"https://api.github.com/repos/Bounties-Network/Explorer/statuses/d511546de9148b963fb20cd717dcafeced23ab7e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"villanuevawill"}}