{"action":"created","comment":{"url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/comments/26891261","id":26891261,"diff_hunk":"@@ -4,7 +4,7 @@ class RelationshipsController < ApplicationController\n \n   def identify_user\n     @user = User.find_by(username: params[:id])\n-    # Check for nil user and user trying to follow/unfollow herself\n+    # Check for nil user and unsigned user trying to follow\n     render js: \"window.location = '/'\" if @user.nil? || !user_signed_in?","path":"app/controllers/relationships_controller.rb","position":6,"original_position":6,"commit_id":"3ad2ab0c628ca86210358a75c583c0d94f1afff9","original_commit_id":"3ad2ab0c628ca86210358a75c583c0d94f1afff9","user":{"login":"rohitpaulk","id":3893573,"avatar_url":"https://avatars.githubusercontent.com/u/3893573?v=3","gravatar_id":"","url":"https://api.github.com/users/rohitpaulk","html_url":"https://github.com/rohitpaulk","followers_url":"https://api.github.com/users/rohitpaulk/followers","following_url":"https://api.github.com/users/rohitpaulk/following{/other_user}","gists_url":"https://api.github.com/users/rohitpaulk/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitpaulk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitpaulk/subscriptions","organizations_url":"https://api.github.com/users/rohitpaulk/orgs","repos_url":"https://api.github.com/users/rohitpaulk/repos","events_url":"https://api.github.com/users/rohitpaulk/events{/privacy}","received_events_url":"https://api.github.com/users/rohitpaulk/received_events","type":"User","site_admin":false},"body":"Actually, we should render a 404 if the `@user` is not found. ","created_at":"2015-03-21T11:35:34Z","updated_at":"2015-03-21T11:35:34Z","html_url":"https://github.com/glittergallery/GlitterGallery/pull/275#discussion_r26891261","pull_request_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/275","_links":{"self":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/comments/26891261"},"html":{"href":"https://github.com/glittergallery/GlitterGallery/pull/275#discussion_r26891261"},"pull_request":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/275"}}},"pull_request":{"url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/275","id":31669259,"html_url":"https://github.com/glittergallery/GlitterGallery/pull/275","diff_url":"https://github.com/glittergallery/GlitterGallery/pull/275.diff","patch_url":"https://github.com/glittergallery/GlitterGallery/pull/275.patch","issue_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/275","number":275,"state":"open","locked":false,"title":"Handle js 401 response","user":{"login":"Alwahsh","id":3496597,"avatar_url":"https://avatars.githubusercontent.com/u/3496597?v=3","gravatar_id":"","url":"https://api.github.com/users/Alwahsh","html_url":"https://github.com/Alwahsh","followers_url":"https://api.github.com/users/Alwahsh/followers","following_url":"https://api.github.com/users/Alwahsh/following{/other_user}","gists_url":"https://api.github.com/users/Alwahsh/gists{/gist_id}","starred_url":"https://api.github.com/users/Alwahsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alwahsh/subscriptions","organizations_url":"https://api.github.com/users/Alwahsh/orgs","repos_url":"https://api.github.com/users/Alwahsh/repos","events_url":"https://api.github.com/users/Alwahsh/events{/privacy}","received_events_url":"https://api.github.com/users/Alwahsh/received_events","type":"User","site_admin":false},"body":"Make 401 responses redirect to users/sign_in as discussed with @rohitpaulk on IRC :)","created_at":"2015-03-21T10:15:15Z","updated_at":"2015-03-21T11:35:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e86abeaf5f65e692d0be0b652a228d7322b5abec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/275/commits","review_comments_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/275/comments","review_comment_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/275/comments","statuses_url":"https://api.github.com/repos/glittergallery/GlitterGallery/statuses/3ad2ab0c628ca86210358a75c583c0d94f1afff9","head":{"label":"Alwahsh:handle_js_error","ref":"handle_js_error","sha":"3ad2ab0c628ca86210358a75c583c0d94f1afff9","user":{"login":"Alwahsh","id":3496597,"avatar_url":"https://avatars.githubusercontent.com/u/3496597?v=3","gravatar_id":"","url":"https://api.github.com/users/Alwahsh","html_url":"https://github.com/Alwahsh","followers_url":"https://api.github.com/users/Alwahsh/followers","following_url":"https://api.github.com/users/Alwahsh/following{/other_user}","gists_url":"https://api.github.com/users/Alwahsh/gists{/gist_id}","starred_url":"https://api.github.com/users/Alwahsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alwahsh/subscriptions","organizations_url":"https://api.github.com/users/Alwahsh/orgs","repos_url":"https://api.github.com/users/Alwahsh/repos","events_url":"https://api.github.com/users/Alwahsh/events{/privacy}","received_events_url":"https://api.github.com/users/Alwahsh/received_events","type":"User","site_admin":false},"repo":{"id":31606518,"name":"GlitterGallery","full_name":"Alwahsh/GlitterGallery","owner":{"login":"Alwahsh","id":3496597,"avatar_url":"https://avatars.githubusercontent.com/u/3496597?v=3","gravatar_id":"","url":"https://api.github.com/users/Alwahsh","html_url":"https://github.com/Alwahsh","followers_url":"https://api.github.com/users/Alwahsh/followers","following_url":"https://api.github.com/users/Alwahsh/following{/other_user}","gists_url":"https://api.github.com/users/Alwahsh/gists{/gist_id}","starred_url":"https://api.github.com/users/Alwahsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alwahsh/subscriptions","organizations_url":"https://api.github.com/users/Alwahsh/orgs","repos_url":"https://api.github.com/users/Alwahsh/repos","events_url":"https://api.github.com/users/Alwahsh/events{/privacy}","received_events_url":"https://api.github.com/users/Alwahsh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alwahsh/GlitterGallery","description":"Share, collect feedback on, and view/manage design iterations.","fork":true,"url":"https://api.github.com/repos/Alwahsh/GlitterGallery","forks_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/forks","keys_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/teams","hooks_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/hooks","issue_events_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/issues/events{/number}","events_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/events","assignees_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/assignees{/user}","branches_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/branches{/branch}","tags_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/tags","blobs_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/statuses/{sha}","languages_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/languages","stargazers_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/stargazers","contributors_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/contributors","subscribers_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/subscribers","subscription_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/subscription","commits_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/contents/{+path}","compare_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/merges","archive_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/downloads","issues_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/issues{/number}","pulls_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/pulls{/number}","milestones_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/milestones{/number}","notifications_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/labels{/name}","releases_url":"https://api.github.com/repos/Alwahsh/GlitterGallery/releases{/id}","created_at":"2015-03-03T15:50:04Z","updated_at":"2015-03-18T17:16:38Z","pushed_at":"2015-03-21T11:29:25Z","git_url":"git://github.com/Alwahsh/GlitterGallery.git","ssh_url":"git@github.com:Alwahsh/GlitterGallery.git","clone_url":"https://github.com/Alwahsh/GlitterGallery.git","svn_url":"https://github.com/Alwahsh/GlitterGallery","homepage":"","size":27175,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"glittergallery:master","ref":"master","sha":"a44ad62dacfcc0afc959f57ef60f77861831e33c","user":{"login":"glittergallery","id":6554891,"avatar_url":"https://avatars.githubusercontent.com/u/6554891?v=3","gravatar_id":"","url":"https://api.github.com/users/glittergallery","html_url":"https://github.com/glittergallery","followers_url":"https://api.github.com/users/glittergallery/followers","following_url":"https://api.github.com/users/glittergallery/following{/other_user}","gists_url":"https://api.github.com/users/glittergallery/gists{/gist_id}","starred_url":"https://api.github.com/users/glittergallery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glittergallery/subscriptions","organizations_url":"https://api.github.com/users/glittergallery/orgs","repos_url":"https://api.github.com/users/glittergallery/repos","events_url":"https://api.github.com/users/glittergallery/events{/privacy}","received_events_url":"https://api.github.com/users/glittergallery/received_events","type":"Organization","site_admin":false},"repo":{"id":4059120,"name":"GlitterGallery","full_name":"glittergallery/GlitterGallery","owner":{"login":"glittergallery","id":6554891,"avatar_url":"https://avatars.githubusercontent.com/u/6554891?v=3","gravatar_id":"","url":"https://api.github.com/users/glittergallery","html_url":"https://github.com/glittergallery","followers_url":"https://api.github.com/users/glittergallery/followers","following_url":"https://api.github.com/users/glittergallery/following{/other_user}","gists_url":"https://api.github.com/users/glittergallery/gists{/gist_id}","starred_url":"https://api.github.com/users/glittergallery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glittergallery/subscriptions","organizations_url":"https://api.github.com/users/glittergallery/orgs","repos_url":"https://api.github.com/users/glittergallery/repos","events_url":"https://api.github.com/users/glittergallery/events{/privacy}","received_events_url":"https://api.github.com/users/glittergallery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/glittergallery/GlitterGallery","description":"Share, collect feedback on, and view/manage design iterations.","fork":false,"url":"https://api.github.com/repos/glittergallery/GlitterGallery","forks_url":"https://api.github.com/repos/glittergallery/GlitterGallery/forks","keys_url":"https://api.github.com/repos/glittergallery/GlitterGallery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glittergallery/GlitterGallery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glittergallery/GlitterGallery/teams","hooks_url":"https://api.github.com/repos/glittergallery/GlitterGallery/hooks","issue_events_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/events{/number}","events_url":"https://api.github.com/repos/glittergallery/GlitterGallery/events","assignees_url":"https://api.github.com/repos/glittergallery/GlitterGallery/assignees{/user}","branches_url":"https://api.github.com/repos/glittergallery/GlitterGallery/branches{/branch}","tags_url":"https://api.github.com/repos/glittergallery/GlitterGallery/tags","blobs_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/refs{/sha}","trees_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glittergallery/GlitterGallery/statuses/{sha}","languages_url":"https://api.github.com/repos/glittergallery/GlitterGallery/languages","stargazers_url":"https://api.github.com/repos/glittergallery/GlitterGallery/stargazers","contributors_url":"https://api.github.com/repos/glittergallery/GlitterGallery/contributors","subscribers_url":"https://api.github.com/repos/glittergallery/GlitterGallery/subscribers","subscription_url":"https://api.github.com/repos/glittergallery/GlitterGallery/subscription","commits_url":"https://api.github.com/repos/glittergallery/GlitterGallery/commits{/sha}","git_commits_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/commits{/sha}","comments_url":"https://api.github.com/repos/glittergallery/GlitterGallery/comments{/number}","issue_comment_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/comments{/number}","contents_url":"https://api.github.com/repos/glittergallery/GlitterGallery/contents/{+path}","compare_url":"https://api.github.com/repos/glittergallery/GlitterGallery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glittergallery/GlitterGallery/merges","archive_url":"https://api.github.com/repos/glittergallery/GlitterGallery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glittergallery/GlitterGallery/downloads","issues_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues{/number}","pulls_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls{/number}","milestones_url":"https://api.github.com/repos/glittergallery/GlitterGallery/milestones{/number}","notifications_url":"https://api.github.com/repos/glittergallery/GlitterGallery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glittergallery/GlitterGallery/labels{/name}","releases_url":"https://api.github.com/repos/glittergallery/GlitterGallery/releases{/id}","created_at":"2012-04-18T01:39:38Z","updated_at":"2015-03-20T15:40:27Z","pushed_at":"2015-03-21T11:29:26Z","git_url":"git://github.com/glittergallery/GlitterGallery.git","ssh_url":"git@github.com:glittergallery/GlitterGallery.git","clone_url":"https://github.com/glittergallery/GlitterGallery.git","svn_url":"https://github.com/glittergallery/GlitterGallery","homepage":"","size":29192,"stargazers_count":41,"watchers_count":41,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":30,"forks":44,"open_issues":30,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/275"},"html":{"href":"https://github.com/glittergallery/GlitterGallery/pull/275"},"issue":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/275"},"comments":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/275/comments"},"review_comments":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/275/comments"},"review_comment":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/275/commits"},"statuses":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/statuses/3ad2ab0c628ca86210358a75c583c0d94f1afff9"}}}}