GitHub PullRequestReviewCommentEvent at 2014-12-24 23:19:21
Repository: otwarchive
Actor: zz9pzza
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/22264817","id":22264817,"diff_hunk":"@@ -13,11 +13,19 @@ def hide\n     flash[:notice] = creation.hidden_by_admin? ? \n                         ts('Item has been hidden.') :\n                         ts('Item is no longer hidden.')\n-    if creation_class == Comment \n+    if creation_class == Comment\n       redirect_to(creation.ultimate_parent) \n     elsif creation_class == ExternalWork\n       redirect_to(request.env[\"HTTP_REFERER\"] || root_path)\n     else\n+      # Email users so they're aware of Abuse action\n+      orphan_account = User.orphan_account\n+      users = creation.pseuds.collect(&:user).uniq\n+      users.each do |user|\n+        unless user == orphan_account","path":"app/controllers/admin/user_creations_controller.rb","position":14,"original_position":14,"commit_id":"27f2cd67fae4dea96c99afcb06e354bb2be0eb05","original_commit_id":"27f2cd67fae4dea96c99afcb06e354bb2be0eb05","user":{"login":"zz9pzza","id":1606304,"avatar_url":"https://avatars.githubusercontent.com/u/1606304?v=3","gravatar_id":"","url":"https://api.github.com/users/zz9pzza","html_url":"https://github.com/zz9pzza","followers_url":"https://api.github.com/users/zz9pzza/followers","following_url":"https://api.github.com/users/zz9pzza/following{/other_user}","gists_url":"https://api.github.com/users/zz9pzza/gists{/gist_id}","starred_url":"https://api.github.com/users/zz9pzza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zz9pzza/subscriptions","organizations_url":"https://api.github.com/users/zz9pzza/orgs","repos_url":"https://api.github.com/users/zz9pzza/repos","events_url":"https://api.github.com/users/zz9pzza/events{/privacy}","received_events_url":"https://api.github.com/users/zz9pzza/received_events","type":"User","site_admin":false},"body":"It was a question not a statement. I wanted the question to be asked and I think I probably agree that we should send this kind of email.","created_at":"2014-12-24T23:19:21Z","updated_at":"2014-12-24T23:19:21Z","html_url":"https://github.com/otwcode/otwarchive/pull/1957#discussion_r22264817","pull_request_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/1957","_links":{"self":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/22264817"},"html":{"href":"https://github.com/otwcode/otwarchive/pull/1957#discussion_r22264817"},"pull_request":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/1957"}}},"pull_request":{"url":"https://api.github.com/repos/otwcode/otwarchive/pulls/1957","id":26492869,"html_url":"https://github.com/otwcode/otwarchive/pull/1957","diff_url":"https://github.com/otwcode/otwarchive/pull/1957.diff","patch_url":"https://github.com/otwcode/otwarchive/pull/1957.patch","issue_url":"https://api.github.com/repos/otwcode/otwarchive/issues/1957","number":1957,"state":"open","locked":false,"title":"Issue 3747: Abuse and hidden works, sending an automatic email","user":{"login":"scottsds","id":1735563,"avatar_url":"https://avatars.githubusercontent.com/u/1735563?v=3","gravatar_id":"","url":"https://api.github.com/users/scottsds","html_url":"https://github.com/scottsds","followers_url":"https://api.github.com/users/scottsds/followers","following_url":"https://api.github.com/users/scottsds/following{/other_user}","gists_url":"https://api.github.com/users/scottsds/gists{/gist_id}","starred_url":"https://api.github.com/users/scottsds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottsds/subscriptions","organizations_url":"https://api.github.com/users/scottsds/orgs","repos_url":"https://api.github.com/users/scottsds/repos","events_url":"https://api.github.com/users/scottsds/events{/privacy}","received_events_url":"https://api.github.com/users/scottsds/received_events","type":"User","site_admin":false},"body":"Resolves issue: https://code.google.com/p/otwarchive/issues/detail?id=3747\r\n\r\nAn email is now generated when an Abuse admin Hides a Work. ","created_at":"2014-12-23T02:24:06Z","updated_at":"2014-12-24T23:19:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bdb8b830a01816f9ef6fcba84a30ac863f75754","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/1957/commits","review_comments_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/1957/comments","review_comment_url":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/{number}","comments_url":"https://api.github.com/repos/otwcode/otwarchive/issues/1957/comments","statuses_url":"https://api.github.com/repos/otwcode/otwarchive/statuses/27f2cd67fae4dea96c99afcb06e354bb2be0eb05","head":{"label":"scottsds:issue_3747","ref":"issue_3747","sha":"27f2cd67fae4dea96c99afcb06e354bb2be0eb05","user":{"login":"scottsds","id":1735563,"avatar_url":"https://avatars.githubusercontent.com/u/1735563?v=3","gravatar_id":"","url":"https://api.github.com/users/scottsds","html_url":"https://github.com/scottsds","followers_url":"https://api.github.com/users/scottsds/followers","following_url":"https://api.github.com/users/scottsds/following{/other_user}","gists_url":"https://api.github.com/users/scottsds/gists{/gist_id}","starred_url":"https://api.github.com/users/scottsds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottsds/subscriptions","organizations_url":"https://api.github.com/users/scottsds/orgs","repos_url":"https://api.github.com/users/scottsds/repos","events_url":"https://api.github.com/users/scottsds/events{/privacy}","received_events_url":"https://api.github.com/users/scottsds/received_events","type":"User","site_admin":false},"repo":{"id":4659431,"name":"otwarchive","full_name":"scottsds/otwarchive","owner":{"login":"scottsds","id":1735563,"avatar_url":"https://avatars.githubusercontent.com/u/1735563?v=3","gravatar_id":"","url":"https://api.github.com/users/scottsds","html_url":"https://github.com/scottsds","followers_url":"https://api.github.com/users/scottsds/followers","following_url":"https://api.github.com/users/scottsds/following{/other_user}","gists_url":"https://api.github.com/users/scottsds/gists{/gist_id}","starred_url":"https://api.github.com/users/scottsds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottsds/subscriptions","organizations_url":"https://api.github.com/users/scottsds/orgs","repos_url":"https://api.github.com/users/scottsds/repos","events_url":"https://api.github.com/users/scottsds/events{/privacy}","received_events_url":"https://api.github.com/users/scottsds/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scottsds/otwarchive","description":"The Organization for Transformative Works (OTW) - Archive Of Our Own (AO3) Project","fork":true,"url":"https://api.github.com/repos/scottsds/otwarchive","forks_url":"https://api.github.com/repos/scottsds/otwarchive/forks","keys_url":"https://api.github.com/repos/scottsds/otwarchive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scottsds/otwarchive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scottsds/otwarchive/teams","hooks_url":"https://api.github.com/repos/scottsds/otwarchive/hooks","issue_events_url":"https://api.github.com/repos/scottsds/otwarchive/issues/events{/number}","events_url":"https://api.github.com/repos/scottsds/otwarchive/events","assignees_url":"https://api.github.com/repos/scottsds/otwarchive/assignees{/user}","branches_url":"https://api.github.com/repos/scottsds/otwarchive/branches{/branch}","tags_url":"https://api.github.com/repos/scottsds/otwarchive/tags","blobs_url":"https://api.github.com/repos/scottsds/otwarchive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scottsds/otwarchive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scottsds/otwarchive/git/refs{/sha}","trees_url":"https://api.github.com/repos/scottsds/otwarchive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scottsds/otwarchive/statuses/{sha}","languages_url":"https://api.github.com/repos/scottsds/otwarchive/languages","stargazers_url":"https://api.github.com/repos/scottsds/otwarchive/stargazers","contributors_url":"https://api.github.com/repos/scottsds/otwarchive/contributors","subscribers_url":"https://api.github.com/repos/scottsds/otwarchive/subscribers","subscription_url":"https://api.github.com/repos/scottsds/otwarchive/subscription","commits_url":"https://api.github.com/repos/scottsds/otwarchive/commits{/sha}","git_commits_url":"https://api.github.com/repos/scottsds/otwarchive/git/commits{/sha}","comments_url":"https://api.github.com/repos/scottsds/otwarchive/comments{/number}","issue_comment_url":"https://api.github.com/repos/scottsds/otwarchive/issues/comments/{number}","contents_url":"https://api.github.com/repos/scottsds/otwarchive/contents/{+path}","compare_url":"https://api.github.com/repos/scottsds/otwarchive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scottsds/otwarchive/merges","archive_url":"https://api.github.com/repos/scottsds/otwarchive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scottsds/otwarchive/downloads","issues_url":"https://api.github.com/repos/scottsds/otwarchive/issues{/number}","pulls_url":"https://api.github.com/repos/scottsds/otwarchive/pulls{/number}","milestones_url":"https://api.github.com/repos/scottsds/otwarchive/milestones{/number}","notifications_url":"https://api.github.com/repos/scottsds/otwarchive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scottsds/otwarchive/labels{/name}","releases_url":"https://api.github.com/repos/scottsds/otwarchive/releases{/id}","created_at":"2012-06-14T04:44:52Z","updated_at":"2014-12-24T21:00:23Z","pushed_at":"2014-12-24T21:00:23Z","git_url":"git://github.com/scottsds/otwarchive.git","ssh_url":"git@github.com:scottsds/otwarchive.git","clone_url":"https://github.com/scottsds/otwarchive.git","svn_url":"https://github.com/scottsds/otwarchive","homepage":"http://transformativeworks.org/projects/archive","size":49516,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":2,"default_branch":"master"}},"base":{"label":"otwcode:master","ref":"master","sha":"ca614be7ca7d98ecd6b0660cd225381f1105616e","user":{"login":"otwcode","id":408606,"avatar_url":"https://avatars.githubusercontent.com/u/408606?v=3","gravatar_id":"","url":"https://api.github.com/users/otwcode","html_url":"https://github.com/otwcode","followers_url":"https://api.github.com/users/otwcode/followers","following_url":"https://api.github.com/users/otwcode/following{/other_user}","gists_url":"https://api.github.com/users/otwcode/gists{/gist_id}","starred_url":"https://api.github.com/users/otwcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otwcode/subscriptions","organizations_url":"https://api.github.com/users/otwcode/orgs","repos_url":"https://api.github.com/users/otwcode/repos","events_url":"https://api.github.com/users/otwcode/events{/privacy}","received_events_url":"https://api.github.com/users/otwcode/received_events","type":"Organization","site_admin":false},"repo":{"id":1338040,"name":"otwarchive","full_name":"otwcode/otwarchive","owner":{"login":"otwcode","id":408606,"avatar_url":"https://avatars.githubusercontent.com/u/408606?v=3","gravatar_id":"","url":"https://api.github.com/users/otwcode","html_url":"https://github.com/otwcode","followers_url":"https://api.github.com/users/otwcode/followers","following_url":"https://api.github.com/users/otwcode/following{/other_user}","gists_url":"https://api.github.com/users/otwcode/gists{/gist_id}","starred_url":"https://api.github.com/users/otwcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otwcode/subscriptions","organizations_url":"https://api.github.com/users/otwcode/orgs","repos_url":"https://api.github.com/users/otwcode/repos","events_url":"https://api.github.com/users/otwcode/events{/privacy}","received_events_url":"https://api.github.com/users/otwcode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/otwcode/otwarchive","description":"The Organization for Transformative Works (OTW) - Archive Of Our Own (AO3) Project","fork":false,"url":"https://api.github.com/repos/otwcode/otwarchive","forks_url":"https://api.github.com/repos/otwcode/otwarchive/forks","keys_url":"https://api.github.com/repos/otwcode/otwarchive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/otwcode/otwarchive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/otwcode/otwarchive/teams","hooks_url":"https://api.github.com/repos/otwcode/otwarchive/hooks","issue_events_url":"https://api.github.com/repos/otwcode/otwarchive/issues/events{/number}","events_url":"https://api.github.com/repos/otwcode/otwarchive/events","assignees_url":"https://api.github.com/repos/otwcode/otwarchive/assignees{/user}","branches_url":"https://api.github.com/repos/otwcode/otwarchive/branches{/branch}","tags_url":"https://api.github.com/repos/otwcode/otwarchive/tags","blobs_url":"https://api.github.com/repos/otwcode/otwarchive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/otwcode/otwarchive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/otwcode/otwarchive/git/refs{/sha}","trees_url":"https://api.github.com/repos/otwcode/otwarchive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/otwcode/otwarchive/statuses/{sha}","languages_url":"https://api.github.com/repos/otwcode/otwarchive/languages","stargazers_url":"https://api.github.com/repos/otwcode/otwarchive/stargazers","contributors_url":"https://api.github.com/repos/otwcode/otwarchive/contributors","subscribers_url":"https://api.github.com/repos/otwcode/otwarchive/subscribers","subscription_url":"https://api.github.com/repos/otwcode/otwarchive/subscription","commits_url":"https://api.github.com/repos/otwcode/otwarchive/commits{/sha}","git_commits_url":"https://api.github.com/repos/otwcode/otwarchive/git/commits{/sha}","comments_url":"https://api.github.com/repos/otwcode/otwarchive/comments{/number}","issue_comment_url":"https://api.github.com/repos/otwcode/otwarchive/issues/comments/{number}","contents_url":"https://api.github.com/repos/otwcode/otwarchive/contents/{+path}","compare_url":"https://api.github.com/repos/otwcode/otwarchive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/otwcode/otwarchive/merges","archive_url":"https://api.github.com/repos/otwcode/otwarchive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/otwcode/otwarchive/downloads","issues_url":"https://api.github.com/repos/otwcode/otwarchive/issues{/number}","pulls_url":"https://api.github.com/repos/otwcode/otwarchive/pulls{/number}","milestones_url":"https://api.github.com/repos/otwcode/otwarchive/milestones{/number}","notifications_url":"https://api.github.com/repos/otwcode/otwarchive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/otwcode/otwarchive/labels{/name}","releases_url":"https://api.github.com/repos/otwcode/otwarchive/releases{/id}","created_at":"2011-02-07T14:50:58Z","updated_at":"2014-12-24T23:04:58Z","pushed_at":"2014-12-24T23:04:58Z","git_url":"git://github.com/otwcode/otwarchive.git","ssh_url":"git@github.com:otwcode/otwarchive.git","clone_url":"https://github.com/otwcode/otwarchive.git","svn_url":"https://github.com/otwcode/otwarchive","homepage":"http://transformativeworks.org/projects/archive","size":151366,"stargazers_count":133,"watchers_count":133,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":36,"forks":96,"open_issues":36,"watchers":133,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/1957"},"html":{"href":"https://github.com/otwcode/otwarchive/pull/1957"},"issue":{"href":"https://api.github.com/repos/otwcode/otwarchive/issues/1957"},"comments":{"href":"https://api.github.com/repos/otwcode/otwarchive/issues/1957/comments"},"review_comments":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/1957/comments"},"review_comment":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/otwcode/otwarchive/pulls/1957/commits"},"statuses":{"href":"https://api.github.com/repos/otwcode/otwarchive/statuses/27f2cd67fae4dea96c99afcb06e354bb2be0eb05"}}}}