{"action":"created","comment":{"url":"https://api.github.com/repos/cc5-team-red/zenni/pulls/comments/219723246","pull_request_review_id":157965392,"id":219723246,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTcyMzI0Ng==","diff_hunk":"@@ -51,26 +53,39 @@ export default class Details extends React.Component {\n     }\n   }\n \n+  _deletePin = () => {\n+    if(this.props.screenProps.user_id === this.state.creator){\n+      this.props.navigation.navigate(\"Home\");\n+      this.props.screenProps._deletePin(this.state.id);\n+    } else {\n+      console.log(\"id mismatch\")\n+    }\n+  }\n+\n   _showComments = (id) => {\n     const pins = this.props.screenProps.pins.filter(pin => pin.id === id);","path":"js/components/Details.js","position":35,"original_position":35,"commit_id":"43e7709610361d246cbc026bde394a8c0ce89405","original_commit_id":"43e7709610361d246cbc026bde394a8c0ce89405","user":{"login":"TsubasaK111","id":14030265,"node_id":"MDQ6VXNlcjE0MDMwMjY1","avatar_url":"https://avatars0.githubusercontent.com/u/14030265?v=4","gravatar_id":"","url":"https://api.github.com/users/TsubasaK111","html_url":"https://github.com/TsubasaK111","followers_url":"https://api.github.com/users/TsubasaK111/followers","following_url":"https://api.github.com/users/TsubasaK111/following{/other_user}","gists_url":"https://api.github.com/users/TsubasaK111/gists{/gist_id}","starred_url":"https://api.github.com/users/TsubasaK111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TsubasaK111/subscriptions","organizations_url":"https://api.github.com/users/TsubasaK111/orgs","repos_url":"https://api.github.com/users/TsubasaK111/repos","events_url":"https://api.github.com/users/TsubasaK111/events{/privacy}","received_events_url":"https://api.github.com/users/TsubasaK111/received_events","type":"User","site_admin":false},"body":"misleading. please call this variable `pin` instead of `pins`","created_at":"2018-09-24T02:54:44Z","updated_at":"2018-09-24T02:59:53Z","html_url":"https://github.com/cc5-team-red/zenni/pull/117#discussion_r219723246","pull_request_url":"https://api.github.com/repos/cc5-team-red/zenni/pulls/117","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cc5-team-red/zenni/pulls/comments/219723246"},"html":{"href":"https://github.com/cc5-team-red/zenni/pull/117#discussion_r219723246"},"pull_request":{"href":"https://api.github.com/repos/cc5-team-red/zenni/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/cc5-team-red/zenni/pulls/117","id":217498449,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3NDk4NDQ5","html_url":"https://github.com/cc5-team-red/zenni/pull/117","diff_url":"https://github.com/cc5-team-red/zenni/pull/117.diff","patch_url":"https://github.com/cc5-team-red/zenni/pull/117.patch","issue_url":"https://api.github.com/repos/cc5-team-red/zenni/issues/117","number":117,"state":"open","locked":false,"title":"Feat/delete pins","user":{"login":"DennoDin","id":9122459,"node_id":"MDQ6VXNlcjkxMjI0NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/9122459?v=4","gravatar_id":"","url":"https://api.github.com/users/DennoDin","html_url":"https://github.com/DennoDin","followers_url":"https://api.github.com/users/DennoDin/followers","following_url":"https://api.github.com/users/DennoDin/following{/other_user}","gists_url":"https://api.github.com/users/DennoDin/gists{/gist_id}","starred_url":"https://api.github.com/users/DennoDin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DennoDin/subscriptions","organizations_url":"https://api.github.com/users/DennoDin/orgs","repos_url":"https://api.github.com/users/DennoDin/repos","events_url":"https://api.github.com/users/DennoDin/events{/privacy}","received_events_url":"https://api.github.com/users/DennoDin/received_events","type":"User","site_admin":false},"body":"Allows users to delete their own pins.\r\n\r\nResolves #55 ","created_at":"2018-09-23T08:09:31Z","updated_at":"2018-09-24T02:59:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c02698b073dacdf9258b1559b47bb371ec9376f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"kimikomotoyama","id":20695832,"node_id":"MDQ6VXNlcjIwNjk1ODMy","avatar_url":"https://avatars2.githubusercontent.com/u/20695832?v=4","gravatar_id":"","url":"https://api.github.com/users/kimikomotoyama","html_url":"https://github.com/kimikomotoyama","followers_url":"https://api.github.com/users/kimikomotoyama/followers","following_url":"https://api.github.com/users/kimikomotoyama/following{/other_user}","gists_url":"https://api.github.com/users/kimikomotoyama/gists{/gist_id}","starred_url":"https://api.github.com/users/kimikomotoyama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimikomotoyama/subscriptions","organizations_url":"https://api.github.com/users/kimikomotoyama/orgs","repos_url":"https://api.github.com/users/kimikomotoyama/repos","events_url":"https://api.github.com/users/kimikomotoyama/events{/privacy}","received_events_url":"https://api.github.com/users/kimikomotoyama/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1046333963,"node_id":"MDU6TGFiZWwxMDQ2MzMzOTYz","url":"https://api.github.com/repos/cc5-team-red/zenni/labels/status:reviewing","name":"status:reviewing","color":"0824a3","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cc5-team-red/zenni/pulls/117/commits","review_comments_url":"https://api.github.com/repos/cc5-team-red/zenni/pulls/117/comments","review_comment_url":"https://api.github.com/repos/cc5-team-red/zenni/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cc5-team-red/zenni/issues/117/comments","statuses_url":"https://api.github.com/repos/cc5-team-red/zenni/statuses/43e7709610361d246cbc026bde394a8c0ce89405","head":{"label":"cc5-team-red:feat/delete-pins","ref":"feat/delete-pins","sha":"43e7709610361d246cbc026bde394a8c0ce89405","user":{"login":"cc5-team-red","id":42953795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyOTUzNzk1","avatar_url":"https://avatars2.githubusercontent.com/u/42953795?v=4","gravatar_id":"","url":"https://api.github.com/users/cc5-team-red","html_url":"https://github.com/cc5-team-red","followers_url":"https://api.github.com/users/cc5-team-red/followers","following_url":"https://api.github.com/users/cc5-team-red/following{/other_user}","gists_url":"https://api.github.com/users/cc5-team-red/gists{/gist_id}","starred_url":"https://api.github.com/users/cc5-team-red/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cc5-team-red/subscriptions","organizations_url":"https://api.github.com/users/cc5-team-red/orgs","repos_url":"https://api.github.com/users/cc5-team-red/repos","events_url":"https://api.github.com/users/cc5-team-red/events{/privacy}","received_events_url":"https://api.github.com/users/cc5-team-red/received_events","type":"Organization","site_admin":false},"repo":{"id":147281965,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyODE5NjU=","name":"zenni","full_name":"cc5-team-red/zenni","private":false,"owner":{"login":"cc5-team-red","id":42953795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyOTUzNzk1","avatar_url":"https://avatars2.githubusercontent.com/u/42953795?v=4","gravatar_id":"","url":"https://api.github.com/users/cc5-team-red","html_url":"https://github.com/cc5-team-red","followers_url":"https://api.github.com/users/cc5-team-red/followers","following_url":"https://api.github.com/users/cc5-team-red/following{/other_user}","gists_url":"https://api.github.com/users/cc5-team-red/gists{/gist_id}","starred_url":"https://api.github.com/users/cc5-team-red/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cc5-team-red/subscriptions","organizations_url":"https://api.github.com/users/cc5-team-red/orgs","repos_url":"https://api.github.com/users/cc5-team-red/repos","events_url":"https://api.github.com/users/cc5-team-red/events{/privacy}","received_events_url":"https://api.github.com/users/cc5-team-red/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cc5-team-red/zenni","description":"Crowdsourced Disaster Mapping App","fork":false,"url":"https://api.github.com/repos/cc5-team-red/zenni","forks_url":"https://api.github.com/repos/cc5-team-red/zenni/forks","keys_url":"https://api.github.com/repos/cc5-team-red/zenni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cc5-team-red/zenni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cc5-team-red/zenni/teams","hooks_url":"https://api.github.com/repos/cc5-team-red/zenni/hooks","issue_events_url":"https://api.github.com/repos/cc5-team-red/zenni/issues/events{/number}","events_url":"https://api.github.com/repos/cc5-team-red/zenni/events","assignees_url":"https://api.github.com/repos/cc5-team-red/zenni/assignees{/user}","branches_url":"https://api.github.com/repos/cc5-team-red/zenni/branches{/branch}","tags_url":"https://api.github.com/repos/cc5-team-red/zenni/tags","blobs_url":"https://api.github.com/repos/cc5-team-red/zenni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cc5-team-red/zenni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cc5-team-red/zenni/git/refs{/sha}","trees_url":"https://api.github.com/repos/cc5-team-red/zenni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cc5-team-red/zenni/statuses/{sha}","languages_url":"https://api.github.com/repos/cc5-team-red/zenni/languages","stargazers_url":"https://api.github.com/repos/cc5-team-red/zenni/stargazers","contributors_url":"https://api.github.com/repos/cc5-team-red/zenni/contributors","subscribers_url":"https://api.github.com/repos/cc5-team-red/zenni/subscribers","subscription_url":"https://api.github.com/repos/cc5-team-red/zenni/subscription","commits_url":"https://api.github.com/repos/cc5-team-red/zenni/commits{/sha}","git_commits_url":"https://api.github.com/repos/cc5-team-red/zenni/git/commits{/sha}","comments_url":"https://api.github.com/repos/cc5-team-red/zenni/comments{/number}","issue_comment_url":"https://api.github.com/repos/cc5-team-red/zenni/issues/comments{/number}","contents_url":"https://api.github.com/repos/cc5-team-red/zenni/contents/{+path}","compare_url":"https://api.github.com/repos/cc5-team-red/zenni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cc5-team-red/zenni/merges","archive_url":"https://api.github.com/repos/cc5-team-red/zenni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cc5-team-red/zenni/downloads","issues_url":"https://api.github.com/repos/cc5-team-red/zenni/issues{/number}","pulls_url":"https://api.github.com/repos/cc5-team-red/zenni/pulls{/number}","milestones_url":"https://api.github.com/repos/cc5-team-red/zenni/milestones{/number}","notifications_url":"https://api.github.com/repos/cc5-team-red/zenni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cc5-team-red/zenni/labels{/name}","releases_url":"https://api.github.com/repos/cc5-team-red/zenni/releases{/id}","deployments_url":"https://api.github.com/repos/cc5-team-red/zenni/deployments","created_at":"2018-09-04T03:14:19Z","updated_at":"2018-09-22T15:34:15Z","pushed_at":"2018-09-23T17:17:31Z","git_url":"git://github.com/cc5-team-red/zenni.git","ssh_url":"git@github.com:cc5-team-red/zenni.git","clone_url":"https://github.com/cc5-team-red/zenni.git","svn_url":"https://github.com/cc5-team-red/zenni","homepage":"https://cc5-team-red.github.io/zenniLanding/","size":114790,"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":28,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":28,"watchers":0,"default_branch":"develop"}},"base":{"label":"cc5-team-red:develop","ref":"develop","sha":"3fc4990a0f369872ae25213563e34db8575f69ab","user":{"login":"cc5-team-red","id":42953795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyOTUzNzk1","avatar_url":"https://avatars2.githubusercontent.com/u/42953795?v=4","gravatar_id":"","url":"https://api.github.com/users/cc5-team-red","html_url":"https://github.com/cc5-team-red","followers_url":"https://api.github.com/users/cc5-team-red/followers","following_url":"https://api.github.com/users/cc5-team-red/following{/other_user}","gists_url":"https://api.github.com/users/cc5-team-red/gists{/gist_id}","starred_url":"https://api.github.com/users/cc5-team-red/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cc5-team-red/subscriptions","organizations_url":"https://api.github.com/users/cc5-team-red/orgs","repos_url":"https://api.github.com/users/cc5-team-red/repos","events_url":"https://api.github.com/users/cc5-team-red/events{/privacy}","received_events_url":"https://api.github.com/users/cc5-team-red/received_events","type":"Organization","site_admin":false},"repo":{"id":147281965,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyODE5NjU=","name":"zenni","full_name":"cc5-team-red/zenni","private":false,"owner":{"login":"cc5-team-red","id":42953795,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQyOTUzNzk1","avatar_url":"https://avatars2.githubusercontent.com/u/42953795?v=4","gravatar_id":"","url":"https://api.github.com/users/cc5-team-red","html_url":"https://github.com/cc5-team-red","followers_url":"https://api.github.com/users/cc5-team-red/followers","following_url":"https://api.github.com/users/cc5-team-red/following{/other_user}","gists_url":"https://api.github.com/users/cc5-team-red/gists{/gist_id}","starred_url":"https://api.github.com/users/cc5-team-red/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cc5-team-red/subscriptions","organizations_url":"https://api.github.com/users/cc5-team-red/orgs","repos_url":"https://api.github.com/users/cc5-team-red/repos","events_url":"https://api.github.com/users/cc5-team-red/events{/privacy}","received_events_url":"https://api.github.com/users/cc5-team-red/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cc5-team-red/zenni","description":"Crowdsourced Disaster Mapping App","fork":false,"url":"https://api.github.com/repos/cc5-team-red/zenni","forks_url":"https://api.github.com/repos/cc5-team-red/zenni/forks","keys_url":"https://api.github.com/repos/cc5-team-red/zenni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cc5-team-red/zenni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cc5-team-red/zenni/teams","hooks_url":"https://api.github.com/repos/cc5-team-red/zenni/hooks","issue_events_url":"https://api.github.com/repos/cc5-team-red/zenni/issues/events{/number}","events_url":"https://api.github.com/repos/cc5-team-red/zenni/events","assignees_url":"https://api.github.com/repos/cc5-team-red/zenni/assignees{/user}","branches_url":"https://api.github.com/repos/cc5-team-red/zenni/branches{/branch}","tags_url":"https://api.github.com/repos/cc5-team-red/zenni/tags","blobs_url":"https://api.github.com/repos/cc5-team-red/zenni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cc5-team-red/zenni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cc5-team-red/zenni/git/refs{/sha}","trees_url":"https://api.github.com/repos/cc5-team-red/zenni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cc5-team-red/zenni/statuses/{sha}","languages_url":"https://api.github.com/repos/cc5-team-red/zenni/languages","stargazers_url":"https://api.github.com/repos/cc5-team-red/zenni/stargazers","contributors_url":"https://api.github.com/repos/cc5-team-red/zenni/contributors","subscribers_url":"https://api.github.com/repos/cc5-team-red/zenni/subscribers","subscription_url":"https://api.github.com/repos/cc5-team-red/zenni/subscription","commits_url":"https://api.github.com/repos/cc5-team-red/zenni/commits{/sha}","git_commits_url":"https://api.github.com/repos/cc5-team-red/zenni/git/commits{/sha}","comments_url":"https://api.github.com/repos/cc5-team-red/zenni/comments{/number}","issue_comment_url":"https://api.github.com/repos/cc5-team-red/zenni/issues/comments{/number}","contents_url":"https://api.github.com/repos/cc5-team-red/zenni/contents/{+path}","compare_url":"https://api.github.com/repos/cc5-team-red/zenni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cc5-team-red/zenni/merges","archive_url":"https://api.github.com/repos/cc5-team-red/zenni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cc5-team-red/zenni/downloads","issues_url":"https://api.github.com/repos/cc5-team-red/zenni/issues{/number}","pulls_url":"https://api.github.com/repos/cc5-team-red/zenni/pulls{/number}","milestones_url":"https://api.github.com/repos/cc5-team-red/zenni/milestones{/number}","notifications_url":"https://api.github.com/repos/cc5-team-red/zenni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cc5-team-red/zenni/labels{/name}","releases_url":"https://api.github.com/repos/cc5-team-red/zenni/releases{/id}","deployments_url":"https://api.github.com/repos/cc5-team-red/zenni/deployments","created_at":"2018-09-04T03:14:19Z","updated_at":"2018-09-22T15:34:15Z","pushed_at":"2018-09-23T17:17:31Z","git_url":"git://github.com/cc5-team-red/zenni.git","ssh_url":"git@github.com:cc5-team-red/zenni.git","clone_url":"https://github.com/cc5-team-red/zenni.git","svn_url":"https://github.com/cc5-team-red/zenni","homepage":"https://cc5-team-red.github.io/zenniLanding/","size":114790,"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":28,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":28,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cc5-team-red/zenni/pulls/117"},"html":{"href":"https://github.com/cc5-team-red/zenni/pull/117"},"issue":{"href":"https://api.github.com/repos/cc5-team-red/zenni/issues/117"},"comments":{"href":"https://api.github.com/repos/cc5-team-red/zenni/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/cc5-team-red/zenni/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/cc5-team-red/zenni/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cc5-team-red/zenni/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/cc5-team-red/zenni/statuses/43e7709610361d246cbc026bde394a8c0ce89405"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"TsubasaK111"}}