{"action":"created","comment":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/41700326","id":41700326,"diff_hunk":"@@ -26,6 +26,10 @@ def self.add_moderator(person)\n     find_or_create_by(person_id: person.id, name: \"moderator\")\n   end\n \n+  def self.spotlight?(person)\n+    exists?(person_id: person.id, name: \"spotlight\")","path":"app/models/role.rb","position":5,"original_position":5,"commit_id":"ccf9dc974e9114b3d225449918991c7793ed65d3","original_commit_id":"2601348dc42fbb4652024db8bba3243ba1b57e3e","user":{"login":"jhass","id":141294,"avatar_url":"https://avatars.githubusercontent.com/u/141294?v=3","gravatar_id":"","url":"https://api.github.com/users/jhass","html_url":"https://github.com/jhass","followers_url":"https://api.github.com/users/jhass/followers","following_url":"https://api.github.com/users/jhass/following{/other_user}","gists_url":"https://api.github.com/users/jhass/gists{/gist_id}","starred_url":"https://api.github.com/users/jhass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhass/subscriptions","organizations_url":"https://api.github.com/users/jhass/orgs","repos_url":"https://api.github.com/users/jhass/repos","events_url":"https://api.github.com/users/jhass/events{/privacy}","received_events_url":"https://api.github.com/users/jhass/received_events","type":"User","site_admin":false},"body":"Okay enough drive by change IMO, you know \"always leave the place cleaner  than you found it\" ;)","created_at":"2015-10-10T19:00:03Z","updated_at":"2015-10-10T19:00:03Z","html_url":"https://github.com/diaspora/diaspora/pull/6486#discussion_r41700326","pull_request_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6486","_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/41700326"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6486#discussion_r41700326"},"pull_request":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6486"}}},"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/6486","id":47343579,"html_url":"https://github.com/diaspora/diaspora/pull/6486","diff_url":"https://github.com/diaspora/diaspora/pull/6486.diff","patch_url":"https://github.com/diaspora/diaspora/pull/6486.patch","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/6486","number":6486,"state":"open","locked":false,"title":"[WIP] An admin can set user roles","user":{"login":"marienfressinaud","id":1436309,"avatar_url":"https://avatars.githubusercontent.com/u/1436309?v=3","gravatar_id":"","url":"https://api.github.com/users/marienfressinaud","html_url":"https://github.com/marienfressinaud","followers_url":"https://api.github.com/users/marienfressinaud/followers","following_url":"https://api.github.com/users/marienfressinaud/following{/other_user}","gists_url":"https://api.github.com/users/marienfressinaud/gists{/gist_id}","starred_url":"https://api.github.com/users/marienfressinaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marienfressinaud/subscriptions","organizations_url":"https://api.github.com/users/marienfressinaud/orgs","repos_url":"https://api.github.com/users/marienfressinaud/repos","events_url":"https://api.github.com/users/marienfressinaud/events{/privacy}","received_events_url":"https://api.github.com/users/marienfressinaud/received_events","type":"User","site_admin":false},"body":"At the moment, it only shows role of users. I'm not sure of the way to support role changes: my first idea was to put role form inside a modal but it is not as simple as it seems to me first :).\r\n\r\nSee https://github.com/diaspora/diaspora/issues/6391","created_at":"2015-10-10T11:15:27Z","updated_at":"2015-10-10T19:00:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01e934cd64c89b3a5bffd8f1bd0742eed25c59bb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6486/commits","review_comments_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6486/comments","review_comment_url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/6486/comments","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/ccf9dc974e9114b3d225449918991c7793ed65d3","head":{"label":"marienfressinaud:feature/admin-can-set-role","ref":"feature/admin-can-set-role","sha":"ccf9dc974e9114b3d225449918991c7793ed65d3","user":{"login":"marienfressinaud","id":1436309,"avatar_url":"https://avatars.githubusercontent.com/u/1436309?v=3","gravatar_id":"","url":"https://api.github.com/users/marienfressinaud","html_url":"https://github.com/marienfressinaud","followers_url":"https://api.github.com/users/marienfressinaud/followers","following_url":"https://api.github.com/users/marienfressinaud/following{/other_user}","gists_url":"https://api.github.com/users/marienfressinaud/gists{/gist_id}","starred_url":"https://api.github.com/users/marienfressinaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marienfressinaud/subscriptions","organizations_url":"https://api.github.com/users/marienfressinaud/orgs","repos_url":"https://api.github.com/users/marienfressinaud/repos","events_url":"https://api.github.com/users/marienfressinaud/events{/privacy}","received_events_url":"https://api.github.com/users/marienfressinaud/received_events","type":"User","site_admin":false},"repo":{"id":20076067,"name":"diaspora","full_name":"marienfressinaud/diaspora","owner":{"login":"marienfressinaud","id":1436309,"avatar_url":"https://avatars.githubusercontent.com/u/1436309?v=3","gravatar_id":"","url":"https://api.github.com/users/marienfressinaud","html_url":"https://github.com/marienfressinaud","followers_url":"https://api.github.com/users/marienfressinaud/followers","following_url":"https://api.github.com/users/marienfressinaud/following{/other_user}","gists_url":"https://api.github.com/users/marienfressinaud/gists{/gist_id}","starred_url":"https://api.github.com/users/marienfressinaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marienfressinaud/subscriptions","organizations_url":"https://api.github.com/users/marienfressinaud/orgs","repos_url":"https://api.github.com/users/marienfressinaud/repos","events_url":"https://api.github.com/users/marienfressinaud/events{/privacy}","received_events_url":"https://api.github.com/users/marienfressinaud/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marienfressinaud/diaspora","description":"Distributed and contextual social networking","fork":true,"url":"https://api.github.com/repos/marienfressinaud/diaspora","forks_url":"https://api.github.com/repos/marienfressinaud/diaspora/forks","keys_url":"https://api.github.com/repos/marienfressinaud/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marienfressinaud/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marienfressinaud/diaspora/teams","hooks_url":"https://api.github.com/repos/marienfressinaud/diaspora/hooks","issue_events_url":"https://api.github.com/repos/marienfressinaud/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/marienfressinaud/diaspora/events","assignees_url":"https://api.github.com/repos/marienfressinaud/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/marienfressinaud/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/marienfressinaud/diaspora/tags","blobs_url":"https://api.github.com/repos/marienfressinaud/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marienfressinaud/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marienfressinaud/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/marienfressinaud/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marienfressinaud/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/marienfressinaud/diaspora/languages","stargazers_url":"https://api.github.com/repos/marienfressinaud/diaspora/stargazers","contributors_url":"https://api.github.com/repos/marienfressinaud/diaspora/contributors","subscribers_url":"https://api.github.com/repos/marienfressinaud/diaspora/subscribers","subscription_url":"https://api.github.com/repos/marienfressinaud/diaspora/subscription","commits_url":"https://api.github.com/repos/marienfressinaud/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/marienfressinaud/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/marienfressinaud/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/marienfressinaud/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/marienfressinaud/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/marienfressinaud/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marienfressinaud/diaspora/merges","archive_url":"https://api.github.com/repos/marienfressinaud/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marienfressinaud/diaspora/downloads","issues_url":"https://api.github.com/repos/marienfressinaud/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/marienfressinaud/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/marienfressinaud/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/marienfressinaud/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marienfressinaud/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/marienfressinaud/diaspora/releases{/id}","created_at":"2014-05-22T20:33:35Z","updated_at":"2015-02-16T13:10:46Z","pushed_at":"2015-10-10T18:56:52Z","git_url":"git://github.com/marienfressinaud/diaspora.git","ssh_url":"git@github.com:marienfressinaud/diaspora.git","clone_url":"https://github.com/marienfressinaud/diaspora.git","svn_url":"https://github.com/marienfressinaud/diaspora","homepage":"https://diasporafoundation.org/","size":102095,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"diaspora:develop","ref":"develop","sha":"aab21be09dfb58482a3781347ed87d0e32e0dbec","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":"Distributed and contextual social networking","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}","created_at":"2010-09-15T05:20:04Z","updated_at":"2015-10-10T18:24:50Z","pushed_at":"2015-10-10T18:56:53Z","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":256888,"stargazers_count":10308,"watchers_count":10308,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2675,"mirror_url":null,"open_issues_count":433,"forks":2675,"open_issues":433,"watchers":10308,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6486"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6486"},"issue":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6486"},"comments":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6486/comments"},"review_comments":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6486/comments"},"review_comment":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6486/commits"},"statuses":{"href":"https://api.github.com/repos/diaspora/diaspora/statuses/ccf9dc974e9114b3d225449918991c7793ed65d3"}}}}