{"action":"created","comment":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/54702911","id":54702911,"diff_hunk":"@@ -224,7 +224,7 @@ def handle_prompt_none\n       def handle_prompt_with_signed_in_user\n         client_id = params[:client_id]\n         if client_id\n-          auth = Api::OpenidConnect::Authorization.find_by_client_id_and_user(client_id, current_user)\n+          auth = Api::OpenidConnect::Authorization.find_by_client_id_user_and_scopes(client_id, current_user, params[:scope])","path":"app/controllers/api/openid_connect/authorizations_controller.rb","position":14,"original_position":14,"commit_id":"a26fda60230ad56f4c05ab79d389b33bc0556687","original_commit_id":"a26fda60230ad56f4c05ab79d389b33bc0556687","user":{"login":"diaspora-code-review","id":13334186,"avatar_url":"https://avatars.githubusercontent.com/u/13334186?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora-code-review","html_url":"https://github.com/diaspora-code-review","followers_url":"https://api.github.com/users/diaspora-code-review/followers","following_url":"https://api.github.com/users/diaspora-code-review/following{/other_user}","gists_url":"https://api.github.com/users/diaspora-code-review/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora-code-review/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora-code-review/subscriptions","organizations_url":"https://api.github.com/users/diaspora-code-review/orgs","repos_url":"https://api.github.com/users/diaspora-code-review/repos","events_url":"https://api.github.com/users/diaspora-code-review/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora-code-review/received_events","type":"User","site_admin":false},"body":"Line is too long. [125/120]","created_at":"2016-03-02T10:07:06Z","updated_at":"2016-03-02T10:07:06Z","html_url":"https://github.com/diaspora/diaspora/pull/6729#discussion_r54702911","pull_request_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6729","_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/54702911"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6729#discussion_r54702911"},"pull_request":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6729"}}},"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/6729","id":61376845,"html_url":"https://github.com/diaspora/diaspora/pull/6729","diff_url":"https://github.com/diaspora/diaspora/pull/6729.diff","patch_url":"https://github.com/diaspora/diaspora/pull/6729.patch","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/6729","number":6729,"state":"open","locked":false,"title":"#6696 - Fix API scope escalation","user":{"login":"theworldbright","id":6329898,"avatar_url":"https://avatars.githubusercontent.com/u/6329898?v=3","gravatar_id":"","url":"https://api.github.com/users/theworldbright","html_url":"https://github.com/theworldbright","followers_url":"https://api.github.com/users/theworldbright/followers","following_url":"https://api.github.com/users/theworldbright/following{/other_user}","gists_url":"https://api.github.com/users/theworldbright/gists{/gist_id}","starred_url":"https://api.github.com/users/theworldbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theworldbright/subscriptions","organizations_url":"https://api.github.com/users/theworldbright/orgs","repos_url":"https://api.github.com/users/theworldbright/repos","events_url":"https://api.github.com/users/theworldbright/events{/privacy}","received_events_url":"https://api.github.com/users/theworldbright/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-02T10:06:56Z","updated_at":"2016-03-02T10:07:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48b3247be666021c00fb1ac8e6436f5376c229cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6729/commits","review_comments_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6729/comments","review_comment_url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/6729/comments","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/a26fda60230ad56f4c05ab79d389b33bc0556687","head":{"label":"theworldbright:6696-api-scope-escalation-fix","ref":"6696-api-scope-escalation-fix","sha":"a26fda60230ad56f4c05ab79d389b33bc0556687","user":{"login":"theworldbright","id":6329898,"avatar_url":"https://avatars.githubusercontent.com/u/6329898?v=3","gravatar_id":"","url":"https://api.github.com/users/theworldbright","html_url":"https://github.com/theworldbright","followers_url":"https://api.github.com/users/theworldbright/followers","following_url":"https://api.github.com/users/theworldbright/following{/other_user}","gists_url":"https://api.github.com/users/theworldbright/gists{/gist_id}","starred_url":"https://api.github.com/users/theworldbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theworldbright/subscriptions","organizations_url":"https://api.github.com/users/theworldbright/orgs","repos_url":"https://api.github.com/users/theworldbright/repos","events_url":"https://api.github.com/users/theworldbright/events{/privacy}","received_events_url":"https://api.github.com/users/theworldbright/received_events","type":"User","site_admin":false},"repo":{"id":31248068,"name":"diaspora","full_name":"theworldbright/diaspora","owner":{"login":"theworldbright","id":6329898,"avatar_url":"https://avatars.githubusercontent.com/u/6329898?v=3","gravatar_id":"","url":"https://api.github.com/users/theworldbright","html_url":"https://github.com/theworldbright","followers_url":"https://api.github.com/users/theworldbright/followers","following_url":"https://api.github.com/users/theworldbright/following{/other_user}","gists_url":"https://api.github.com/users/theworldbright/gists{/gist_id}","starred_url":"https://api.github.com/users/theworldbright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theworldbright/subscriptions","organizations_url":"https://api.github.com/users/theworldbright/orgs","repos_url":"https://api.github.com/users/theworldbright/repos","events_url":"https://api.github.com/users/theworldbright/events{/privacy}","received_events_url":"https://api.github.com/users/theworldbright/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/theworldbright/diaspora","description":"Distributed and contextual social networking","fork":true,"url":"https://api.github.com/repos/theworldbright/diaspora","forks_url":"https://api.github.com/repos/theworldbright/diaspora/forks","keys_url":"https://api.github.com/repos/theworldbright/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theworldbright/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theworldbright/diaspora/teams","hooks_url":"https://api.github.com/repos/theworldbright/diaspora/hooks","issue_events_url":"https://api.github.com/repos/theworldbright/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/theworldbright/diaspora/events","assignees_url":"https://api.github.com/repos/theworldbright/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/theworldbright/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/theworldbright/diaspora/tags","blobs_url":"https://api.github.com/repos/theworldbright/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theworldbright/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theworldbright/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/theworldbright/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theworldbright/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/theworldbright/diaspora/languages","stargazers_url":"https://api.github.com/repos/theworldbright/diaspora/stargazers","contributors_url":"https://api.github.com/repos/theworldbright/diaspora/contributors","subscribers_url":"https://api.github.com/repos/theworldbright/diaspora/subscribers","subscription_url":"https://api.github.com/repos/theworldbright/diaspora/subscription","commits_url":"https://api.github.com/repos/theworldbright/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/theworldbright/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/theworldbright/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/theworldbright/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/theworldbright/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/theworldbright/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theworldbright/diaspora/merges","archive_url":"https://api.github.com/repos/theworldbright/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theworldbright/diaspora/downloads","issues_url":"https://api.github.com/repos/theworldbright/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/theworldbright/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/theworldbright/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/theworldbright/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theworldbright/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/theworldbright/diaspora/releases{/id}","deployments_url":"https://api.github.com/repos/theworldbright/diaspora/deployments","created_at":"2015-02-24T06:43:16Z","updated_at":"2015-02-24T06:43:22Z","pushed_at":"2016-03-02T10:06:30Z","git_url":"git://github.com/theworldbright/diaspora.git","ssh_url":"git@github.com:theworldbright/diaspora.git","clone_url":"https://github.com/theworldbright/diaspora.git","svn_url":"https://github.com/theworldbright/diaspora","homepage":"https://diasporafoundation.org/","size":104084,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"diaspora:develop","ref":"develop","sha":"091c426004cac802b99436582ebf5487c216256f","user":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"repo":{"id":911765,"name":"diaspora","full_name":"diaspora/diaspora","owner":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diaspora/diaspora","description":"A privacy-aware, distributed, open source social network.","fork":false,"url":"https://api.github.com/repos/diaspora/diaspora","forks_url":"https://api.github.com/repos/diaspora/diaspora/forks","keys_url":"https://api.github.com/repos/diaspora/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diaspora/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diaspora/diaspora/teams","hooks_url":"https://api.github.com/repos/diaspora/diaspora/hooks","issue_events_url":"https://api.github.com/repos/diaspora/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/diaspora/diaspora/events","assignees_url":"https://api.github.com/repos/diaspora/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/diaspora/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/diaspora/diaspora/tags","blobs_url":"https://api.github.com/repos/diaspora/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diaspora/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diaspora/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/diaspora/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/diaspora/diaspora/languages","stargazers_url":"https://api.github.com/repos/diaspora/diaspora/stargazers","contributors_url":"https://api.github.com/repos/diaspora/diaspora/contributors","subscribers_url":"https://api.github.com/repos/diaspora/diaspora/subscribers","subscription_url":"https://api.github.com/repos/diaspora/diaspora/subscription","commits_url":"https://api.github.com/repos/diaspora/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/diaspora/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/diaspora/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/diaspora/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/diaspora/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/diaspora/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diaspora/diaspora/merges","archive_url":"https://api.github.com/repos/diaspora/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diaspora/diaspora/downloads","issues_url":"https://api.github.com/repos/diaspora/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/diaspora/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/diaspora/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/diaspora/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diaspora/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/diaspora/diaspora/releases{/id}","deployments_url":"https://api.github.com/repos/diaspora/diaspora/deployments","created_at":"2010-09-15T05:20:04Z","updated_at":"2016-03-02T02:16:43Z","pushed_at":"2016-03-02T10:06:57Z","git_url":"git://github.com/diaspora/diaspora.git","ssh_url":"git@github.com:diaspora/diaspora.git","clone_url":"https://github.com/diaspora/diaspora.git","svn_url":"https://github.com/diaspora/diaspora","homepage":"https://diasporafoundation.org/","size":233348,"stargazers_count":10590,"watchers_count":10590,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2724,"mirror_url":null,"open_issues_count":424,"forks":2724,"open_issues":424,"watchers":10590,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6729"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6729"},"issue":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6729"},"comments":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6729/comments"},"review_comments":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6729/comments"},"review_comment":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6729/commits"},"statuses":{"href":"https://api.github.com/repos/diaspora/diaspora/statuses/a26fda60230ad56f4c05ab79d389b33bc0556687"}}}}