{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-C4/seemore/pulls/comments/50195850","id":50195850,"diff_hunk":"@@ -1,2 +1,88 @@\n module UsersHelper\n+  def self.default_content\n+    stories = []\n+    stories.push(Story.where(subscription_id: 1))\n+    stories.push(Story.where(subscription_id: 2))\n+    stories.push(Story.where(subscription_id: 3))\n+    stories.flatten!\n+    return stories\n+  end  \n+\n+  def self.user_content(user)\n+    stories = []\n+    user.subscriptions.each do |subscription|\n+      subscription.stories.each do |story|\n+        stories.push(story)\n+      end\n+    end\n+    return stories\n+  end\n+\n+  def self.twitter_subscription_info(user_name)\n+    twitter = Seemore::Application.config.twitter\n+    tweets = twitter.user_timeline(user_name)\n+    uid = tweets[0].user.id\n+    provider = \"twitter\"\n+    username = tweets[0].user.screen_name\n+    avatar_url = tweets[0].user.profile_image_url\n+    return tweets, uid, provider, username, avatar_url\n+  end","path":"app/helpers/users_helper.rb","position":29,"original_position":29,"commit_id":"0b11200a3d183f2af7bf50d099c33f479ea625ff","original_commit_id":"0b11200a3d183f2af7bf50d099c33f479ea625ff","user":{"login":"lilagrc","id":7612874,"avatar_url":"https://avatars.githubusercontent.com/u/7612874?v=3","gravatar_id":"","url":"https://api.github.com/users/lilagrc","html_url":"https://github.com/lilagrc","followers_url":"https://api.github.com/users/lilagrc/followers","following_url":"https://api.github.com/users/lilagrc/following{/other_user}","gists_url":"https://api.github.com/users/lilagrc/gists{/gist_id}","starred_url":"https://api.github.com/users/lilagrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilagrc/subscriptions","organizations_url":"https://api.github.com/users/lilagrc/orgs","repos_url":"https://api.github.com/users/lilagrc/repos","events_url":"https://api.github.com/users/lilagrc/events{/privacy}","received_events_url":"https://api.github.com/users/lilagrc/received_events","type":"User","site_admin":false},"body":"Nice use of the helper to extract some of your API calls and set variables!","created_at":"2016-01-19T23:55:27Z","updated_at":"2016-01-19T23:55:27Z","html_url":"https://github.com/Ada-C4/seemore/pull/20#discussion_r50195850","pull_request_url":"https://api.github.com/repos/Ada-C4/seemore/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/seemore/pulls/comments/50195850"},"html":{"href":"https://github.com/Ada-C4/seemore/pull/20#discussion_r50195850"},"pull_request":{"href":"https://api.github.com/repos/Ada-C4/seemore/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-C4/seemore/pulls/20","id":56392851,"html_url":"https://github.com/Ada-C4/seemore/pull/20","diff_url":"https://github.com/Ada-C4/seemore/pull/20.diff","patch_url":"https://github.com/Ada-C4/seemore/pull/20.patch","issue_url":"https://api.github.com/repos/Ada-C4/seemore/issues/20","number":20,"state":"open","locked":false,"title":"Team Skynet Submission","user":{"login":"noglows","id":3345580,"avatar_url":"https://avatars.githubusercontent.com/u/3345580?v=3","gravatar_id":"","url":"https://api.github.com/users/noglows","html_url":"https://github.com/noglows","followers_url":"https://api.github.com/users/noglows/followers","following_url":"https://api.github.com/users/noglows/following{/other_user}","gists_url":"https://api.github.com/users/noglows/gists{/gist_id}","starred_url":"https://api.github.com/users/noglows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noglows/subscriptions","organizations_url":"https://api.github.com/users/noglows/orgs","repos_url":"https://api.github.com/users/noglows/repos","events_url":"https://api.github.com/users/noglows/events{/privacy}","received_events_url":"https://api.github.com/users/noglows/received_events","type":"User","site_admin":false},"body":"Completed all project requirements ","created_at":"2016-01-18T21:22:53Z","updated_at":"2016-01-19T23:55:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"082a7d2cfb335794dc5a58130b68fde655b7b3ea","assignee":{"login":"lilagrc","id":7612874,"avatar_url":"https://avatars.githubusercontent.com/u/7612874?v=3","gravatar_id":"","url":"https://api.github.com/users/lilagrc","html_url":"https://github.com/lilagrc","followers_url":"https://api.github.com/users/lilagrc/followers","following_url":"https://api.github.com/users/lilagrc/following{/other_user}","gists_url":"https://api.github.com/users/lilagrc/gists{/gist_id}","starred_url":"https://api.github.com/users/lilagrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilagrc/subscriptions","organizations_url":"https://api.github.com/users/lilagrc/orgs","repos_url":"https://api.github.com/users/lilagrc/repos","events_url":"https://api.github.com/users/lilagrc/events{/privacy}","received_events_url":"https://api.github.com/users/lilagrc/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Ada-C4/seemore/pulls/20/commits","review_comments_url":"https://api.github.com/repos/Ada-C4/seemore/pulls/20/comments","review_comment_url":"https://api.github.com/repos/Ada-C4/seemore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-C4/seemore/issues/20/comments","statuses_url":"https://api.github.com/repos/Ada-C4/seemore/statuses/0b11200a3d183f2af7bf50d099c33f479ea625ff","head":{"label":"noglows:skynet","ref":"skynet","sha":"0b11200a3d183f2af7bf50d099c33f479ea625ff","user":{"login":"noglows","id":3345580,"avatar_url":"https://avatars.githubusercontent.com/u/3345580?v=3","gravatar_id":"","url":"https://api.github.com/users/noglows","html_url":"https://github.com/noglows","followers_url":"https://api.github.com/users/noglows/followers","following_url":"https://api.github.com/users/noglows/following{/other_user}","gists_url":"https://api.github.com/users/noglows/gists{/gist_id}","starred_url":"https://api.github.com/users/noglows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noglows/subscriptions","organizations_url":"https://api.github.com/users/noglows/orgs","repos_url":"https://api.github.com/users/noglows/repos","events_url":"https://api.github.com/users/noglows/events{/privacy}","received_events_url":"https://api.github.com/users/noglows/received_events","type":"User","site_admin":false},"repo":{"id":49099534,"name":"seemore","full_name":"noglows/seemore","owner":{"login":"noglows","id":3345580,"avatar_url":"https://avatars.githubusercontent.com/u/3345580?v=3","gravatar_id":"","url":"https://api.github.com/users/noglows","html_url":"https://github.com/noglows","followers_url":"https://api.github.com/users/noglows/followers","following_url":"https://api.github.com/users/noglows/following{/other_user}","gists_url":"https://api.github.com/users/noglows/gists{/gist_id}","starred_url":"https://api.github.com/users/noglows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noglows/subscriptions","organizations_url":"https://api.github.com/users/noglows/orgs","repos_url":"https://api.github.com/users/noglows/repos","events_url":"https://api.github.com/users/noglows/events{/privacy}","received_events_url":"https://api.github.com/users/noglows/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/noglows/seemore","description":"","fork":true,"url":"https://api.github.com/repos/noglows/seemore","forks_url":"https://api.github.com/repos/noglows/seemore/forks","keys_url":"https://api.github.com/repos/noglows/seemore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noglows/seemore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noglows/seemore/teams","hooks_url":"https://api.github.com/repos/noglows/seemore/hooks","issue_events_url":"https://api.github.com/repos/noglows/seemore/issues/events{/number}","events_url":"https://api.github.com/repos/noglows/seemore/events","assignees_url":"https://api.github.com/repos/noglows/seemore/assignees{/user}","branches_url":"https://api.github.com/repos/noglows/seemore/branches{/branch}","tags_url":"https://api.github.com/repos/noglows/seemore/tags","blobs_url":"https://api.github.com/repos/noglows/seemore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noglows/seemore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noglows/seemore/git/refs{/sha}","trees_url":"https://api.github.com/repos/noglows/seemore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noglows/seemore/statuses/{sha}","languages_url":"https://api.github.com/repos/noglows/seemore/languages","stargazers_url":"https://api.github.com/repos/noglows/seemore/stargazers","contributors_url":"https://api.github.com/repos/noglows/seemore/contributors","subscribers_url":"https://api.github.com/repos/noglows/seemore/subscribers","subscription_url":"https://api.github.com/repos/noglows/seemore/subscription","commits_url":"https://api.github.com/repos/noglows/seemore/commits{/sha}","git_commits_url":"https://api.github.com/repos/noglows/seemore/git/commits{/sha}","comments_url":"https://api.github.com/repos/noglows/seemore/comments{/number}","issue_comment_url":"https://api.github.com/repos/noglows/seemore/issues/comments{/number}","contents_url":"https://api.github.com/repos/noglows/seemore/contents/{+path}","compare_url":"https://api.github.com/repos/noglows/seemore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noglows/seemore/merges","archive_url":"https://api.github.com/repos/noglows/seemore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noglows/seemore/downloads","issues_url":"https://api.github.com/repos/noglows/seemore/issues{/number}","pulls_url":"https://api.github.com/repos/noglows/seemore/pulls{/number}","milestones_url":"https://api.github.com/repos/noglows/seemore/milestones{/number}","notifications_url":"https://api.github.com/repos/noglows/seemore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noglows/seemore/labels{/name}","releases_url":"https://api.github.com/repos/noglows/seemore/releases{/id}","created_at":"2016-01-05T23:40:55Z","updated_at":"2016-01-01T23:19:30Z","pushed_at":"2016-01-15T20:25:42Z","git_url":"git://github.com/noglows/seemore.git","ssh_url":"git@github.com:noglows/seemore.git","clone_url":"https://github.com/noglows/seemore.git","svn_url":"https://github.com/noglows/seemore","homepage":null,"size":305,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ada-C4:skynet","ref":"skynet","sha":"53516de4685eba7caa8b46e3bbb63c0dfcce7849","user":{"login":"Ada-C4","id":14096372,"avatar_url":"https://avatars.githubusercontent.com/u/14096372?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C4","html_url":"https://github.com/Ada-C4","followers_url":"https://api.github.com/users/Ada-C4/followers","following_url":"https://api.github.com/users/Ada-C4/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C4/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C4/subscriptions","organizations_url":"https://api.github.com/users/Ada-C4/orgs","repos_url":"https://api.github.com/users/Ada-C4/repos","events_url":"https://api.github.com/users/Ada-C4/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C4/received_events","type":"Organization","site_admin":false},"repo":{"id":48892727,"name":"seemore","full_name":"Ada-C4/seemore","owner":{"login":"Ada-C4","id":14096372,"avatar_url":"https://avatars.githubusercontent.com/u/14096372?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C4","html_url":"https://github.com/Ada-C4","followers_url":"https://api.github.com/users/Ada-C4/followers","following_url":"https://api.github.com/users/Ada-C4/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C4/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C4/subscriptions","organizations_url":"https://api.github.com/users/Ada-C4/orgs","repos_url":"https://api.github.com/users/Ada-C4/repos","events_url":"https://api.github.com/users/Ada-C4/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-C4/seemore","description":"","fork":true,"url":"https://api.github.com/repos/Ada-C4/seemore","forks_url":"https://api.github.com/repos/Ada-C4/seemore/forks","keys_url":"https://api.github.com/repos/Ada-C4/seemore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-C4/seemore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-C4/seemore/teams","hooks_url":"https://api.github.com/repos/Ada-C4/seemore/hooks","issue_events_url":"https://api.github.com/repos/Ada-C4/seemore/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-C4/seemore/events","assignees_url":"https://api.github.com/repos/Ada-C4/seemore/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-C4/seemore/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-C4/seemore/tags","blobs_url":"https://api.github.com/repos/Ada-C4/seemore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-C4/seemore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-C4/seemore/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-C4/seemore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-C4/seemore/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-C4/seemore/languages","stargazers_url":"https://api.github.com/repos/Ada-C4/seemore/stargazers","contributors_url":"https://api.github.com/repos/Ada-C4/seemore/contributors","subscribers_url":"https://api.github.com/repos/Ada-C4/seemore/subscribers","subscription_url":"https://api.github.com/repos/Ada-C4/seemore/subscription","commits_url":"https://api.github.com/repos/Ada-C4/seemore/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-C4/seemore/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-C4/seemore/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-C4/seemore/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-C4/seemore/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-C4/seemore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-C4/seemore/merges","archive_url":"https://api.github.com/repos/Ada-C4/seemore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-C4/seemore/downloads","issues_url":"https://api.github.com/repos/Ada-C4/seemore/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-C4/seemore/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-C4/seemore/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-C4/seemore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-C4/seemore/labels{/name}","releases_url":"https://api.github.com/repos/Ada-C4/seemore/releases{/id}","created_at":"2016-01-01T23:34:11Z","updated_at":"2016-01-07T17:01:24Z","pushed_at":"2016-01-19T23:01:36Z","git_url":"git://github.com/Ada-C4/seemore.git","ssh_url":"git@github.com:Ada-C4/seemore.git","clone_url":"https://github.com/Ada-C4/seemore.git","svn_url":"https://github.com/Ada-C4/seemore","homepage":null,"size":274,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":6,"forks":6,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/seemore/pulls/20"},"html":{"href":"https://github.com/Ada-C4/seemore/pull/20"},"issue":{"href":"https://api.github.com/repos/Ada-C4/seemore/issues/20"},"comments":{"href":"https://api.github.com/repos/Ada-C4/seemore/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-C4/seemore/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-C4/seemore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-C4/seemore/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-C4/seemore/statuses/0b11200a3d183f2af7bf50d099c33f479ea625ff"}}}}