{"action":"created","comment":{"url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/comments/27884944","id":27884944,"diff_hunk":"@@ -6,15 +6,17 @@\n     </div>\n     <%= review.description %>\n     <%= review.user.email %>\n-    <% if review.voted_on_by?(current_user) && review.find_vote(current_user).value == 0 %>\n-      <%= link_to \"Upvote\", review_upvote_path(review, review.find_vote(current_user)), method: :patch %>\n-      <%= link_to \"Downvote\", review_downvote_path(review, review.find_vote(current_user)), method: :patch %>\n-    <% elsif review.voted_on_by?(current_user) %>\n-        Already voted. <%= link_to \"Cancel.\",\n-        review_vote_path(review, review.find_vote(current_user)), method: :patch %>\n-    <% else %>\n-      <%= link_to \"Upvote\", review_upvotes_path(review), method: :post %>\n-      <%= link_to \"Downvote\", review_downvotes_path(review), method: :post %>\n+    <% if !current_user.nil? %>","path":"app/views/reviews/_index.html.erb","position":13,"original_position":13,"commit_id":"f826d76f7ccdb1e716eacc13f474ac22429f18f4","original_commit_id":"f826d76f7ccdb1e716eacc13f474ac22429f18f4","user":{"login":"omidbachari","id":6855810,"avatar_url":"https://avatars.githubusercontent.com/u/6855810?v=3","gravatar_id":"","url":"https://api.github.com/users/omidbachari","html_url":"https://github.com/omidbachari","followers_url":"https://api.github.com/users/omidbachari/followers","following_url":"https://api.github.com/users/omidbachari/following{/other_user}","gists_url":"https://api.github.com/users/omidbachari/gists{/gist_id}","starred_url":"https://api.github.com/users/omidbachari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omidbachari/subscriptions","organizations_url":"https://api.github.com/users/omidbachari/orgs","repos_url":"https://api.github.com/users/omidbachari/repos","events_url":"https://api.github.com/users/omidbachari/events{/privacy}","received_events_url":"https://api.github.com/users/omidbachari/received_events","type":"User","site_admin":false},"body":"Can you show me the difference between line 9 and the following:\r\n\r\n```erb  \r\n<% if current_user %>\r\n```","created_at":"2015-04-07T14:52:42Z","updated_at":"2015-04-07T14:52:42Z","html_url":"https://github.com/lizmorr/Neighborgood/pull/20#discussion_r27884944","pull_request_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/comments/27884944"},"html":{"href":"https://github.com/lizmorr/Neighborgood/pull/20#discussion_r27884944"},"pull_request":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/20","id":32770431,"html_url":"https://github.com/lizmorr/Neighborgood/pull/20","diff_url":"https://github.com/lizmorr/Neighborgood/pull/20.diff","patch_url":"https://github.com/lizmorr/Neighborgood/pull/20.patch","issue_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/20","number":20,"state":"open","locked":false,"title":"WIP Correct issue where unauthenticated users could see the upvote and downv...","user":{"login":"lizmorr","id":10189660,"avatar_url":"https://avatars.githubusercontent.com/u/10189660?v=3","gravatar_id":"","url":"https://api.github.com/users/lizmorr","html_url":"https://github.com/lizmorr","followers_url":"https://api.github.com/users/lizmorr/followers","following_url":"https://api.github.com/users/lizmorr/following{/other_user}","gists_url":"https://api.github.com/users/lizmorr/gists{/gist_id}","starred_url":"https://api.github.com/users/lizmorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizmorr/subscriptions","organizations_url":"https://api.github.com/users/lizmorr/orgs","repos_url":"https://api.github.com/users/lizmorr/repos","events_url":"https://api.github.com/users/lizmorr/events{/privacy}","received_events_url":"https://api.github.com/users/lizmorr/received_events","type":"User","site_admin":false},"body":"...ote options.","created_at":"2015-04-07T14:43:19Z","updated_at":"2015-04-07T14:52:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2bfa3af47f0588fe4e6035047918b62c1f889366","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/20/commits","review_comments_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/20/comments","review_comment_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/20/comments","statuses_url":"https://api.github.com/repos/lizmorr/Neighborgood/statuses/f826d76f7ccdb1e716eacc13f474ac22429f18f4","head":{"label":"lizmorr:em_fix_vote_wrapper","ref":"em_fix_vote_wrapper","sha":"f826d76f7ccdb1e716eacc13f474ac22429f18f4","user":{"login":"lizmorr","id":10189660,"avatar_url":"https://avatars.githubusercontent.com/u/10189660?v=3","gravatar_id":"","url":"https://api.github.com/users/lizmorr","html_url":"https://github.com/lizmorr","followers_url":"https://api.github.com/users/lizmorr/followers","following_url":"https://api.github.com/users/lizmorr/following{/other_user}","gists_url":"https://api.github.com/users/lizmorr/gists{/gist_id}","starred_url":"https://api.github.com/users/lizmorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizmorr/subscriptions","organizations_url":"https://api.github.com/users/lizmorr/orgs","repos_url":"https://api.github.com/users/lizmorr/repos","events_url":"https://api.github.com/users/lizmorr/events{/privacy}","received_events_url":"https://api.github.com/users/lizmorr/received_events","type":"User","site_admin":false},"repo":{"id":33186220,"name":"Neighborgood","full_name":"lizmorr/Neighborgood","owner":{"login":"lizmorr","id":10189660,"avatar_url":"https://avatars.githubusercontent.com/u/10189660?v=3","gravatar_id":"","url":"https://api.github.com/users/lizmorr","html_url":"https://github.com/lizmorr","followers_url":"https://api.github.com/users/lizmorr/followers","following_url":"https://api.github.com/users/lizmorr/following{/other_user}","gists_url":"https://api.github.com/users/lizmorr/gists{/gist_id}","starred_url":"https://api.github.com/users/lizmorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizmorr/subscriptions","organizations_url":"https://api.github.com/users/lizmorr/orgs","repos_url":"https://api.github.com/users/lizmorr/repos","events_url":"https://api.github.com/users/lizmorr/events{/privacy}","received_events_url":"https://api.github.com/users/lizmorr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lizmorr/Neighborgood","description":"Launch Academy Group project - reviewing neighborhoods in Boston!","fork":false,"url":"https://api.github.com/repos/lizmorr/Neighborgood","forks_url":"https://api.github.com/repos/lizmorr/Neighborgood/forks","keys_url":"https://api.github.com/repos/lizmorr/Neighborgood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lizmorr/Neighborgood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lizmorr/Neighborgood/teams","hooks_url":"https://api.github.com/repos/lizmorr/Neighborgood/hooks","issue_events_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/events{/number}","events_url":"https://api.github.com/repos/lizmorr/Neighborgood/events","assignees_url":"https://api.github.com/repos/lizmorr/Neighborgood/assignees{/user}","branches_url":"https://api.github.com/repos/lizmorr/Neighborgood/branches{/branch}","tags_url":"https://api.github.com/repos/lizmorr/Neighborgood/tags","blobs_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/refs{/sha}","trees_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lizmorr/Neighborgood/statuses/{sha}","languages_url":"https://api.github.com/repos/lizmorr/Neighborgood/languages","stargazers_url":"https://api.github.com/repos/lizmorr/Neighborgood/stargazers","contributors_url":"https://api.github.com/repos/lizmorr/Neighborgood/contributors","subscribers_url":"https://api.github.com/repos/lizmorr/Neighborgood/subscribers","subscription_url":"https://api.github.com/repos/lizmorr/Neighborgood/subscription","commits_url":"https://api.github.com/repos/lizmorr/Neighborgood/commits{/sha}","git_commits_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/commits{/sha}","comments_url":"https://api.github.com/repos/lizmorr/Neighborgood/comments{/number}","issue_comment_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/comments{/number}","contents_url":"https://api.github.com/repos/lizmorr/Neighborgood/contents/{+path}","compare_url":"https://api.github.com/repos/lizmorr/Neighborgood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lizmorr/Neighborgood/merges","archive_url":"https://api.github.com/repos/lizmorr/Neighborgood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lizmorr/Neighborgood/downloads","issues_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues{/number}","pulls_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls{/number}","milestones_url":"https://api.github.com/repos/lizmorr/Neighborgood/milestones{/number}","notifications_url":"https://api.github.com/repos/lizmorr/Neighborgood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lizmorr/Neighborgood/labels{/name}","releases_url":"https://api.github.com/repos/lizmorr/Neighborgood/releases{/id}","created_at":"2015-03-31T13:13:33Z","updated_at":"2015-04-07T13:35:57Z","pushed_at":"2015-04-07T14:43:20Z","git_url":"git://github.com/lizmorr/Neighborgood.git","ssh_url":"git@github.com:lizmorr/Neighborgood.git","clone_url":"https://github.com/lizmorr/Neighborgood.git","svn_url":"https://github.com/lizmorr/Neighborgood","homepage":null,"size":2784,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lizmorr:master","ref":"master","sha":"c4cee576d6bcaee4286b1d2e78c2a4eadbabeb51","user":{"login":"lizmorr","id":10189660,"avatar_url":"https://avatars.githubusercontent.com/u/10189660?v=3","gravatar_id":"","url":"https://api.github.com/users/lizmorr","html_url":"https://github.com/lizmorr","followers_url":"https://api.github.com/users/lizmorr/followers","following_url":"https://api.github.com/users/lizmorr/following{/other_user}","gists_url":"https://api.github.com/users/lizmorr/gists{/gist_id}","starred_url":"https://api.github.com/users/lizmorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizmorr/subscriptions","organizations_url":"https://api.github.com/users/lizmorr/orgs","repos_url":"https://api.github.com/users/lizmorr/repos","events_url":"https://api.github.com/users/lizmorr/events{/privacy}","received_events_url":"https://api.github.com/users/lizmorr/received_events","type":"User","site_admin":false},"repo":{"id":33186220,"name":"Neighborgood","full_name":"lizmorr/Neighborgood","owner":{"login":"lizmorr","id":10189660,"avatar_url":"https://avatars.githubusercontent.com/u/10189660?v=3","gravatar_id":"","url":"https://api.github.com/users/lizmorr","html_url":"https://github.com/lizmorr","followers_url":"https://api.github.com/users/lizmorr/followers","following_url":"https://api.github.com/users/lizmorr/following{/other_user}","gists_url":"https://api.github.com/users/lizmorr/gists{/gist_id}","starred_url":"https://api.github.com/users/lizmorr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lizmorr/subscriptions","organizations_url":"https://api.github.com/users/lizmorr/orgs","repos_url":"https://api.github.com/users/lizmorr/repos","events_url":"https://api.github.com/users/lizmorr/events{/privacy}","received_events_url":"https://api.github.com/users/lizmorr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lizmorr/Neighborgood","description":"Launch Academy Group project - reviewing neighborhoods in Boston!","fork":false,"url":"https://api.github.com/repos/lizmorr/Neighborgood","forks_url":"https://api.github.com/repos/lizmorr/Neighborgood/forks","keys_url":"https://api.github.com/repos/lizmorr/Neighborgood/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lizmorr/Neighborgood/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lizmorr/Neighborgood/teams","hooks_url":"https://api.github.com/repos/lizmorr/Neighborgood/hooks","issue_events_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/events{/number}","events_url":"https://api.github.com/repos/lizmorr/Neighborgood/events","assignees_url":"https://api.github.com/repos/lizmorr/Neighborgood/assignees{/user}","branches_url":"https://api.github.com/repos/lizmorr/Neighborgood/branches{/branch}","tags_url":"https://api.github.com/repos/lizmorr/Neighborgood/tags","blobs_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/refs{/sha}","trees_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lizmorr/Neighborgood/statuses/{sha}","languages_url":"https://api.github.com/repos/lizmorr/Neighborgood/languages","stargazers_url":"https://api.github.com/repos/lizmorr/Neighborgood/stargazers","contributors_url":"https://api.github.com/repos/lizmorr/Neighborgood/contributors","subscribers_url":"https://api.github.com/repos/lizmorr/Neighborgood/subscribers","subscription_url":"https://api.github.com/repos/lizmorr/Neighborgood/subscription","commits_url":"https://api.github.com/repos/lizmorr/Neighborgood/commits{/sha}","git_commits_url":"https://api.github.com/repos/lizmorr/Neighborgood/git/commits{/sha}","comments_url":"https://api.github.com/repos/lizmorr/Neighborgood/comments{/number}","issue_comment_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues/comments{/number}","contents_url":"https://api.github.com/repos/lizmorr/Neighborgood/contents/{+path}","compare_url":"https://api.github.com/repos/lizmorr/Neighborgood/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lizmorr/Neighborgood/merges","archive_url":"https://api.github.com/repos/lizmorr/Neighborgood/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lizmorr/Neighborgood/downloads","issues_url":"https://api.github.com/repos/lizmorr/Neighborgood/issues{/number}","pulls_url":"https://api.github.com/repos/lizmorr/Neighborgood/pulls{/number}","milestones_url":"https://api.github.com/repos/lizmorr/Neighborgood/milestones{/number}","notifications_url":"https://api.github.com/repos/lizmorr/Neighborgood/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lizmorr/Neighborgood/labels{/name}","releases_url":"https://api.github.com/repos/lizmorr/Neighborgood/releases{/id}","created_at":"2015-03-31T13:13:33Z","updated_at":"2015-04-07T13:35:57Z","pushed_at":"2015-04-07T14:43:20Z","git_url":"git://github.com/lizmorr/Neighborgood.git","ssh_url":"git@github.com:lizmorr/Neighborgood.git","clone_url":"https://github.com/lizmorr/Neighborgood.git","svn_url":"https://github.com/lizmorr/Neighborgood","homepage":null,"size":2784,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/20"},"html":{"href":"https://github.com/lizmorr/Neighborgood/pull/20"},"issue":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/issues/20"},"comments":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/lizmorr/Neighborgood/statuses/f826d76f7ccdb1e716eacc13f474ac22429f18f4"}}}}