{"action":"created","comment":{"url":"https://api.github.com/repos/irnoble/stormer/pulls/comments/35489009","id":35489009,"diff_hunk":"@@ -55,6 +55,30 @@ def tag_list=(tags_string)\n     self.tags = new_or_found_tags\n   end\n \n+####################################################################\n+\n+  def filter_reddit_categories\n+    tags = self.tags\n+    subreddits = []\n+    names = []\n+    tags.each do |tag|\n+      names << tag.name\n+    end\n+    query = names.join(',')\n+\n+    url = \"http://api.reddit.com/api/subreddits_by_topic.json?query=#{query}\"\n+    results = JSON.parse(open(url).read)\n+\n+    results.each do |result|\n+      if names.include?(result[\"name\"].downcase)\n+        subreddits << result[\"name\"].downcase\n+      end\n+    end\n+    subreddits\n+  end\n+\n+####################################################################","path":"app/models/user.rb","position":26,"original_position":26,"commit_id":"3e9ebc213b2af70df73f13265af9b8bf24c44c0b","original_commit_id":"3e9ebc213b2af70df73f13265af9b8bf24c44c0b","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Incorrect indentation detected (column 0 instead of 2).","created_at":"2015-07-26T03:39:09Z","updated_at":"2015-07-26T03:39:09Z","html_url":"https://github.com/irnoble/stormer/pull/24#discussion_r35489009","pull_request_url":"https://api.github.com/repos/irnoble/stormer/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/comments/35489009"},"html":{"href":"https://github.com/irnoble/stormer/pull/24#discussion_r35489009"},"pull_request":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/irnoble/stormer/pulls/24","id":40847330,"html_url":"https://github.com/irnoble/stormer/pull/24","diff_url":"https://github.com/irnoble/stormer/pull/24.diff","patch_url":"https://github.com/irnoble/stormer/pull/24.patch","issue_url":"https://api.github.com/repos/irnoble/stormer/issues/24","number":24,"state":"open","locked":false,"title":"Styling25th","user":{"login":"irnoble","id":8623522,"avatar_url":"https://avatars.githubusercontent.com/u/8623522?v=3","gravatar_id":"","url":"https://api.github.com/users/irnoble","html_url":"https://github.com/irnoble","followers_url":"https://api.github.com/users/irnoble/followers","following_url":"https://api.github.com/users/irnoble/following{/other_user}","gists_url":"https://api.github.com/users/irnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/irnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irnoble/subscriptions","organizations_url":"https://api.github.com/users/irnoble/orgs","repos_url":"https://api.github.com/users/irnoble/repos","events_url":"https://api.github.com/users/irnoble/events{/privacy}","received_events_url":"https://api.github.com/users/irnoble/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-26T03:38:55Z","updated_at":"2015-07-26T03:39:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea15a704d8abfa5f97b8206938cd1ace6a17f514","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/irnoble/stormer/pulls/24/commits","review_comments_url":"https://api.github.com/repos/irnoble/stormer/pulls/24/comments","review_comment_url":"https://api.github.com/repos/irnoble/stormer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/irnoble/stormer/issues/24/comments","statuses_url":"https://api.github.com/repos/irnoble/stormer/statuses/3e9ebc213b2af70df73f13265af9b8bf24c44c0b","head":{"label":"irnoble:styling25th","ref":"styling25th","sha":"3e9ebc213b2af70df73f13265af9b8bf24c44c0b","user":{"login":"irnoble","id":8623522,"avatar_url":"https://avatars.githubusercontent.com/u/8623522?v=3","gravatar_id":"","url":"https://api.github.com/users/irnoble","html_url":"https://github.com/irnoble","followers_url":"https://api.github.com/users/irnoble/followers","following_url":"https://api.github.com/users/irnoble/following{/other_user}","gists_url":"https://api.github.com/users/irnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/irnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irnoble/subscriptions","organizations_url":"https://api.github.com/users/irnoble/orgs","repos_url":"https://api.github.com/users/irnoble/repos","events_url":"https://api.github.com/users/irnoble/events{/privacy}","received_events_url":"https://api.github.com/users/irnoble/received_events","type":"User","site_admin":false},"repo":{"id":38941397,"name":"stormer","full_name":"irnoble/stormer","owner":{"login":"irnoble","id":8623522,"avatar_url":"https://avatars.githubusercontent.com/u/8623522?v=3","gravatar_id":"","url":"https://api.github.com/users/irnoble","html_url":"https://github.com/irnoble","followers_url":"https://api.github.com/users/irnoble/followers","following_url":"https://api.github.com/users/irnoble/following{/other_user}","gists_url":"https://api.github.com/users/irnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/irnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irnoble/subscriptions","organizations_url":"https://api.github.com/users/irnoble/orgs","repos_url":"https://api.github.com/users/irnoble/repos","events_url":"https://api.github.com/users/irnoble/events{/privacy}","received_events_url":"https://api.github.com/users/irnoble/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/irnoble/stormer","description":"","fork":false,"url":"https://api.github.com/repos/irnoble/stormer","forks_url":"https://api.github.com/repos/irnoble/stormer/forks","keys_url":"https://api.github.com/repos/irnoble/stormer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/irnoble/stormer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/irnoble/stormer/teams","hooks_url":"https://api.github.com/repos/irnoble/stormer/hooks","issue_events_url":"https://api.github.com/repos/irnoble/stormer/issues/events{/number}","events_url":"https://api.github.com/repos/irnoble/stormer/events","assignees_url":"https://api.github.com/repos/irnoble/stormer/assignees{/user}","branches_url":"https://api.github.com/repos/irnoble/stormer/branches{/branch}","tags_url":"https://api.github.com/repos/irnoble/stormer/tags","blobs_url":"https://api.github.com/repos/irnoble/stormer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/irnoble/stormer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/irnoble/stormer/git/refs{/sha}","trees_url":"https://api.github.com/repos/irnoble/stormer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/irnoble/stormer/statuses/{sha}","languages_url":"https://api.github.com/repos/irnoble/stormer/languages","stargazers_url":"https://api.github.com/repos/irnoble/stormer/stargazers","contributors_url":"https://api.github.com/repos/irnoble/stormer/contributors","subscribers_url":"https://api.github.com/repos/irnoble/stormer/subscribers","subscription_url":"https://api.github.com/repos/irnoble/stormer/subscription","commits_url":"https://api.github.com/repos/irnoble/stormer/commits{/sha}","git_commits_url":"https://api.github.com/repos/irnoble/stormer/git/commits{/sha}","comments_url":"https://api.github.com/repos/irnoble/stormer/comments{/number}","issue_comment_url":"https://api.github.com/repos/irnoble/stormer/issues/comments{/number}","contents_url":"https://api.github.com/repos/irnoble/stormer/contents/{+path}","compare_url":"https://api.github.com/repos/irnoble/stormer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/irnoble/stormer/merges","archive_url":"https://api.github.com/repos/irnoble/stormer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/irnoble/stormer/downloads","issues_url":"https://api.github.com/repos/irnoble/stormer/issues{/number}","pulls_url":"https://api.github.com/repos/irnoble/stormer/pulls{/number}","milestones_url":"https://api.github.com/repos/irnoble/stormer/milestones{/number}","notifications_url":"https://api.github.com/repos/irnoble/stormer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/irnoble/stormer/labels{/name}","releases_url":"https://api.github.com/repos/irnoble/stormer/releases{/id}","created_at":"2015-07-11T21:42:27Z","updated_at":"2015-07-11T21:43:31Z","pushed_at":"2015-07-26T03:38:55Z","git_url":"git://github.com/irnoble/stormer.git","ssh_url":"git@github.com:irnoble/stormer.git","clone_url":"https://github.com/irnoble/stormer.git","svn_url":"https://github.com/irnoble/stormer","homepage":null,"size":1008,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"irnoble:master","ref":"master","sha":"079f30c309e8d6e21a0c819cc38292ab0df43516","user":{"login":"irnoble","id":8623522,"avatar_url":"https://avatars.githubusercontent.com/u/8623522?v=3","gravatar_id":"","url":"https://api.github.com/users/irnoble","html_url":"https://github.com/irnoble","followers_url":"https://api.github.com/users/irnoble/followers","following_url":"https://api.github.com/users/irnoble/following{/other_user}","gists_url":"https://api.github.com/users/irnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/irnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irnoble/subscriptions","organizations_url":"https://api.github.com/users/irnoble/orgs","repos_url":"https://api.github.com/users/irnoble/repos","events_url":"https://api.github.com/users/irnoble/events{/privacy}","received_events_url":"https://api.github.com/users/irnoble/received_events","type":"User","site_admin":false},"repo":{"id":38941397,"name":"stormer","full_name":"irnoble/stormer","owner":{"login":"irnoble","id":8623522,"avatar_url":"https://avatars.githubusercontent.com/u/8623522?v=3","gravatar_id":"","url":"https://api.github.com/users/irnoble","html_url":"https://github.com/irnoble","followers_url":"https://api.github.com/users/irnoble/followers","following_url":"https://api.github.com/users/irnoble/following{/other_user}","gists_url":"https://api.github.com/users/irnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/irnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irnoble/subscriptions","organizations_url":"https://api.github.com/users/irnoble/orgs","repos_url":"https://api.github.com/users/irnoble/repos","events_url":"https://api.github.com/users/irnoble/events{/privacy}","received_events_url":"https://api.github.com/users/irnoble/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/irnoble/stormer","description":"","fork":false,"url":"https://api.github.com/repos/irnoble/stormer","forks_url":"https://api.github.com/repos/irnoble/stormer/forks","keys_url":"https://api.github.com/repos/irnoble/stormer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/irnoble/stormer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/irnoble/stormer/teams","hooks_url":"https://api.github.com/repos/irnoble/stormer/hooks","issue_events_url":"https://api.github.com/repos/irnoble/stormer/issues/events{/number}","events_url":"https://api.github.com/repos/irnoble/stormer/events","assignees_url":"https://api.github.com/repos/irnoble/stormer/assignees{/user}","branches_url":"https://api.github.com/repos/irnoble/stormer/branches{/branch}","tags_url":"https://api.github.com/repos/irnoble/stormer/tags","blobs_url":"https://api.github.com/repos/irnoble/stormer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/irnoble/stormer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/irnoble/stormer/git/refs{/sha}","trees_url":"https://api.github.com/repos/irnoble/stormer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/irnoble/stormer/statuses/{sha}","languages_url":"https://api.github.com/repos/irnoble/stormer/languages","stargazers_url":"https://api.github.com/repos/irnoble/stormer/stargazers","contributors_url":"https://api.github.com/repos/irnoble/stormer/contributors","subscribers_url":"https://api.github.com/repos/irnoble/stormer/subscribers","subscription_url":"https://api.github.com/repos/irnoble/stormer/subscription","commits_url":"https://api.github.com/repos/irnoble/stormer/commits{/sha}","git_commits_url":"https://api.github.com/repos/irnoble/stormer/git/commits{/sha}","comments_url":"https://api.github.com/repos/irnoble/stormer/comments{/number}","issue_comment_url":"https://api.github.com/repos/irnoble/stormer/issues/comments{/number}","contents_url":"https://api.github.com/repos/irnoble/stormer/contents/{+path}","compare_url":"https://api.github.com/repos/irnoble/stormer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/irnoble/stormer/merges","archive_url":"https://api.github.com/repos/irnoble/stormer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/irnoble/stormer/downloads","issues_url":"https://api.github.com/repos/irnoble/stormer/issues{/number}","pulls_url":"https://api.github.com/repos/irnoble/stormer/pulls{/number}","milestones_url":"https://api.github.com/repos/irnoble/stormer/milestones{/number}","notifications_url":"https://api.github.com/repos/irnoble/stormer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/irnoble/stormer/labels{/name}","releases_url":"https://api.github.com/repos/irnoble/stormer/releases{/id}","created_at":"2015-07-11T21:42:27Z","updated_at":"2015-07-11T21:43:31Z","pushed_at":"2015-07-26T03:38:55Z","git_url":"git://github.com/irnoble/stormer.git","ssh_url":"git@github.com:irnoble/stormer.git","clone_url":"https://github.com/irnoble/stormer.git","svn_url":"https://github.com/irnoble/stormer","homepage":null,"size":1008,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/24"},"html":{"href":"https://github.com/irnoble/stormer/pull/24"},"issue":{"href":"https://api.github.com/repos/irnoble/stormer/issues/24"},"comments":{"href":"https://api.github.com/repos/irnoble/stormer/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/irnoble/stormer/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/irnoble/stormer/statuses/3e9ebc213b2af70df73f13265af9b8bf24c44c0b"}}}}