{"action":"created","comment":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/41085824","id":41085824,"diff_hunk":"@@ -7,7 +7,10 @@ class ReportController < ApplicationController\n   before_action :redirect_unless_moderator, except: [:create]\n \n   def index\n-    @reports = Report.where(reviewed: false)\n+    @reports ||= []\n+    Report.where(reviewed: false).each do |report|\n+      @reports << report unless report.item.nil?\n+    end","path":"app/controllers/report_controller.rb","position":8,"original_position":8,"commit_id":"1976da605f94869f1b2c825ebddd70208bf9fef9","original_commit_id":"bd441eac8fb5f9617a7eef304e54126b1ade7b31","user":{"login":"Zauberstuhl","id":652428,"avatar_url":"https://avatars.githubusercontent.com/u/652428?v=3","gravatar_id":"","url":"https://api.github.com/users/Zauberstuhl","html_url":"https://github.com/Zauberstuhl","followers_url":"https://api.github.com/users/Zauberstuhl/followers","following_url":"https://api.github.com/users/Zauberstuhl/following{/other_user}","gists_url":"https://api.github.com/users/Zauberstuhl/gists{/gist_id}","starred_url":"https://api.github.com/users/Zauberstuhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zauberstuhl/subscriptions","organizations_url":"https://api.github.com/users/Zauberstuhl/orgs","repos_url":"https://api.github.com/users/Zauberstuhl/repos","events_url":"https://api.github.com/users/Zauberstuhl/events{/privacy}","received_events_url":"https://api.github.com/users/Zauberstuhl/received_events","type":"User","site_admin":false},"body":"if the author deletes the post on its own after the report was made.\r\nOn second thought it might be better deleting the report on a post/comment-destroy/retract","created_at":"2015-10-03T10:35:27Z","updated_at":"2015-10-03T10:35:27Z","html_url":"https://github.com/diaspora/diaspora/pull/6378#discussion_r41085824","pull_request_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6378","_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/41085824"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6378#discussion_r41085824"},"pull_request":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6378"}}},"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/6378","id":44123625,"html_url":"https://github.com/diaspora/diaspora/pull/6378","diff_url":"https://github.com/diaspora/diaspora/pull/6378.diff","patch_url":"https://github.com/diaspora/diaspora/pull/6378.patch","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/6378","number":6378,"state":"open","locked":false,"title":"Report tab; Bootstrap3 compatible and reported-user-detail button","user":{"login":"Zauberstuhl","id":652428,"avatar_url":"https://avatars.githubusercontent.com/u/652428?v=3","gravatar_id":"","url":"https://api.github.com/users/Zauberstuhl","html_url":"https://github.com/Zauberstuhl","followers_url":"https://api.github.com/users/Zauberstuhl/followers","following_url":"https://api.github.com/users/Zauberstuhl/following{/other_user}","gists_url":"https://api.github.com/users/Zauberstuhl/gists{/gist_id}","starred_url":"https://api.github.com/users/Zauberstuhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zauberstuhl/subscriptions","organizations_url":"https://api.github.com/users/Zauberstuhl/orgs","repos_url":"https://api.github.com/users/Zauberstuhl/repos","events_url":"https://api.github.com/users/Zauberstuhl/events{/privacy}","received_events_url":"https://api.github.com/users/Zauberstuhl/received_events","type":"User","site_admin":false},"body":"![untitled](https://cloud.githubusercontent.com/assets/652428/9663191/7aecc248-5263-11e5-992e-829a6a708c35.png)\r\n\r\nb3 hasn't triggered that.. more the new button.\r\n\r\nIt will search the guid via (admin) user_search.. This can be useful if the podmin\r\nwants to lock, unlock or delete the account responsible for the reported post.","created_at":"2015-09-03T15:47:48Z","updated_at":"2015-10-03T10:35:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8e5f4154f8b3511db6f1e479cd8eebab6f1b5bd","assignee":null,"milestone":{"url":"https://api.github.com/repos/diaspora/diaspora/milestones/14","html_url":"https://github.com/diaspora/diaspora/milestones/0.6.0.0","labels_url":"https://api.github.com/repos/diaspora/diaspora/milestones/14/labels","id":1063323,"number":14,"title":"0.6.0.0","description":"","creator":{"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},"open_issues":9,"closed_issues":156,"state":"open","created_at":"2015-04-11T18:44:30Z","updated_at":"2015-10-02T20:00:36Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6378/commits","review_comments_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6378/comments","review_comment_url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/6378/comments","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/1976da605f94869f1b2c825ebddd70208bf9fef9","head":{"label":"Zauberstuhl:bootstrap3_and_user_detail_btn","ref":"bootstrap3_and_user_detail_btn","sha":"1976da605f94869f1b2c825ebddd70208bf9fef9","user":{"login":"Zauberstuhl","id":652428,"avatar_url":"https://avatars.githubusercontent.com/u/652428?v=3","gravatar_id":"","url":"https://api.github.com/users/Zauberstuhl","html_url":"https://github.com/Zauberstuhl","followers_url":"https://api.github.com/users/Zauberstuhl/followers","following_url":"https://api.github.com/users/Zauberstuhl/following{/other_user}","gists_url":"https://api.github.com/users/Zauberstuhl/gists{/gist_id}","starred_url":"https://api.github.com/users/Zauberstuhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zauberstuhl/subscriptions","organizations_url":"https://api.github.com/users/Zauberstuhl/orgs","repos_url":"https://api.github.com/users/Zauberstuhl/repos","events_url":"https://api.github.com/users/Zauberstuhl/events{/privacy}","received_events_url":"https://api.github.com/users/Zauberstuhl/received_events","type":"User","site_admin":false},"repo":{"id":2695744,"name":"diaspora","full_name":"Zauberstuhl/diaspora","owner":{"login":"Zauberstuhl","id":652428,"avatar_url":"https://avatars.githubusercontent.com/u/652428?v=3","gravatar_id":"","url":"https://api.github.com/users/Zauberstuhl","html_url":"https://github.com/Zauberstuhl","followers_url":"https://api.github.com/users/Zauberstuhl/followers","following_url":"https://api.github.com/users/Zauberstuhl/following{/other_user}","gists_url":"https://api.github.com/users/Zauberstuhl/gists{/gist_id}","starred_url":"https://api.github.com/users/Zauberstuhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zauberstuhl/subscriptions","organizations_url":"https://api.github.com/users/Zauberstuhl/orgs","repos_url":"https://api.github.com/users/Zauberstuhl/repos","events_url":"https://api.github.com/users/Zauberstuhl/events{/privacy}","received_events_url":"https://api.github.com/users/Zauberstuhl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zauberstuhl/diaspora","description":"Distributed and contextual social networking","fork":true,"url":"https://api.github.com/repos/Zauberstuhl/diaspora","forks_url":"https://api.github.com/repos/Zauberstuhl/diaspora/forks","keys_url":"https://api.github.com/repos/Zauberstuhl/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zauberstuhl/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zauberstuhl/diaspora/teams","hooks_url":"https://api.github.com/repos/Zauberstuhl/diaspora/hooks","issue_events_url":"https://api.github.com/repos/Zauberstuhl/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/Zauberstuhl/diaspora/events","assignees_url":"https://api.github.com/repos/Zauberstuhl/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/Zauberstuhl/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/Zauberstuhl/diaspora/tags","blobs_url":"https://api.github.com/repos/Zauberstuhl/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zauberstuhl/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zauberstuhl/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zauberstuhl/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zauberstuhl/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/Zauberstuhl/diaspora/languages","stargazers_url":"https://api.github.com/repos/Zauberstuhl/diaspora/stargazers","contributors_url":"https://api.github.com/repos/Zauberstuhl/diaspora/contributors","subscribers_url":"https://api.github.com/repos/Zauberstuhl/diaspora/subscribers","subscription_url":"https://api.github.com/repos/Zauberstuhl/diaspora/subscription","commits_url":"https://api.github.com/repos/Zauberstuhl/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zauberstuhl/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zauberstuhl/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zauberstuhl/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zauberstuhl/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/Zauberstuhl/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zauberstuhl/diaspora/merges","archive_url":"https://api.github.com/repos/Zauberstuhl/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zauberstuhl/diaspora/downloads","issues_url":"https://api.github.com/repos/Zauberstuhl/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/Zauberstuhl/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/Zauberstuhl/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/Zauberstuhl/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zauberstuhl/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/Zauberstuhl/diaspora/releases{/id}","created_at":"2011-11-02T15:12:06Z","updated_at":"2015-09-03T19:13:33Z","pushed_at":"2015-10-03T10:27:25Z","git_url":"git://github.com/Zauberstuhl/diaspora.git","ssh_url":"git@github.com:Zauberstuhl/diaspora.git","clone_url":"https://github.com/Zauberstuhl/diaspora.git","svn_url":"https://github.com/Zauberstuhl/diaspora","homepage":"diasporafoundation.org/get_involved","size":107222,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"diaspora:develop","ref":"develop","sha":"cc631372a171dc35e54100e935bf092519fe7110","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-03T10:25:01Z","pushed_at":"2015-10-03T10:27:25Z","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":257175,"stargazers_count":10293,"watchers_count":10293,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2672,"mirror_url":null,"open_issues_count":432,"forks":2672,"open_issues":432,"watchers":10293,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6378"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6378"},"issue":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6378"},"comments":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6378/comments"},"review_comments":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6378/comments"},"review_comment":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6378/commits"},"statuses":{"href":"https://api.github.com/repos/diaspora/diaspora/statuses/1976da605f94869f1b2c825ebddd70208bf9fef9"}}}}