{"action":"created","comment":{"url":"https://api.github.com/repos/freaktags/core/pulls/comments/28637890","id":28637890,"diff_hunk":"@@ -25,11 +26,11 @@ def age\n   end\n \n   def activities\n-    PublicActivity::Activity.where(owner_id: self.id).order(\"created_at desc\")\n+    PublicActivity::Activity.where(owner_id: self.id).order(created_at: :desc)\n   end\n \n-  def friends_activities\n-    PublicActivity::Activity.where(owner_id: self.friends.map(&:id)).order(\"created_at desc\")\n+  def follows_activities\n+    PublicActivity::Activity.where(owner_id: self.follows.map(&:followable_id)).order(created_at: :desc)","path":"app/models/user.rb","position":24,"original_position":24,"commit_id":"e031a9f18f9d9259158738554dd6323b0869b12a","original_commit_id":"e031a9f18f9d9259158738554dd6323b0869b12a","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":"Line is too long. [104/80]<br>Redundant `self` detected.","created_at":"2015-04-17T23:45:27Z","updated_at":"2015-04-17T23:45:27Z","html_url":"https://github.com/freaktags/core/pull/154#discussion_r28637890","pull_request_url":"https://api.github.com/repos/freaktags/core/pulls/154","_links":{"self":{"href":"https://api.github.com/repos/freaktags/core/pulls/comments/28637890"},"html":{"href":"https://github.com/freaktags/core/pull/154#discussion_r28637890"},"pull_request":{"href":"https://api.github.com/repos/freaktags/core/pulls/154"}}},"pull_request":{"url":"https://api.github.com/repos/freaktags/core/pulls/154","id":33591284,"html_url":"https://github.com/freaktags/core/pull/154","diff_url":"https://github.com/freaktags/core/pull/154.diff","patch_url":"https://github.com/freaktags/core/pull/154.patch","issue_url":"https://api.github.com/repos/freaktags/core/issues/154","number":154,"state":"open","locked":false,"title":"[#152] act as follower [Not ready yet]","user":{"login":"marceloboeira","id":1898225,"avatar_url":"https://avatars.githubusercontent.com/u/1898225?v=3","gravatar_id":"","url":"https://api.github.com/users/marceloboeira","html_url":"https://github.com/marceloboeira","followers_url":"https://api.github.com/users/marceloboeira/followers","following_url":"https://api.github.com/users/marceloboeira/following{/other_user}","gists_url":"https://api.github.com/users/marceloboeira/gists{/gist_id}","starred_url":"https://api.github.com/users/marceloboeira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marceloboeira/subscriptions","organizations_url":"https://api.github.com/users/marceloboeira/orgs","repos_url":"https://api.github.com/users/marceloboeira/repos","events_url":"https://api.github.com/users/marceloboeira/events{/privacy}","received_events_url":"https://api.github.com/users/marceloboeira/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-17T23:45:19Z","updated_at":"2015-04-17T23:45:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"547024df1425f9a40e7c58151aa8ff839b3087e3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/freaktags/core/pulls/154/commits","review_comments_url":"https://api.github.com/repos/freaktags/core/pulls/154/comments","review_comment_url":"https://api.github.com/repos/freaktags/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/freaktags/core/issues/154/comments","statuses_url":"https://api.github.com/repos/freaktags/core/statuses/e031a9f18f9d9259158738554dd6323b0869b12a","head":{"label":"freaktags:act_as_follower","ref":"act_as_follower","sha":"e031a9f18f9d9259158738554dd6323b0869b12a","user":{"login":"freaktags","id":3782107,"avatar_url":"https://avatars.githubusercontent.com/u/3782107?v=3","gravatar_id":"","url":"https://api.github.com/users/freaktags","html_url":"https://github.com/freaktags","followers_url":"https://api.github.com/users/freaktags/followers","following_url":"https://api.github.com/users/freaktags/following{/other_user}","gists_url":"https://api.github.com/users/freaktags/gists{/gist_id}","starred_url":"https://api.github.com/users/freaktags/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freaktags/subscriptions","organizations_url":"https://api.github.com/users/freaktags/orgs","repos_url":"https://api.github.com/users/freaktags/repos","events_url":"https://api.github.com/users/freaktags/events{/privacy}","received_events_url":"https://api.github.com/users/freaktags/received_events","type":"Organization","site_admin":false},"repo":{"id":24063357,"name":"core","full_name":"freaktags/core","owner":{"login":"freaktags","id":3782107,"avatar_url":"https://avatars.githubusercontent.com/u/3782107?v=3","gravatar_id":"","url":"https://api.github.com/users/freaktags","html_url":"https://github.com/freaktags","followers_url":"https://api.github.com/users/freaktags/followers","following_url":"https://api.github.com/users/freaktags/following{/other_user}","gists_url":"https://api.github.com/users/freaktags/gists{/gist_id}","starred_url":"https://api.github.com/users/freaktags/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freaktags/subscriptions","organizations_url":"https://api.github.com/users/freaktags/orgs","repos_url":"https://api.github.com/users/freaktags/repos","events_url":"https://api.github.com/users/freaktags/events{/privacy}","received_events_url":"https://api.github.com/users/freaktags/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/freaktags/core","description":"What have you been watching?","fork":false,"url":"https://api.github.com/repos/freaktags/core","forks_url":"https://api.github.com/repos/freaktags/core/forks","keys_url":"https://api.github.com/repos/freaktags/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freaktags/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freaktags/core/teams","hooks_url":"https://api.github.com/repos/freaktags/core/hooks","issue_events_url":"https://api.github.com/repos/freaktags/core/issues/events{/number}","events_url":"https://api.github.com/repos/freaktags/core/events","assignees_url":"https://api.github.com/repos/freaktags/core/assignees{/user}","branches_url":"https://api.github.com/repos/freaktags/core/branches{/branch}","tags_url":"https://api.github.com/repos/freaktags/core/tags","blobs_url":"https://api.github.com/repos/freaktags/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freaktags/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freaktags/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/freaktags/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freaktags/core/statuses/{sha}","languages_url":"https://api.github.com/repos/freaktags/core/languages","stargazers_url":"https://api.github.com/repos/freaktags/core/stargazers","contributors_url":"https://api.github.com/repos/freaktags/core/contributors","subscribers_url":"https://api.github.com/repos/freaktags/core/subscribers","subscription_url":"https://api.github.com/repos/freaktags/core/subscription","commits_url":"https://api.github.com/repos/freaktags/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/freaktags/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/freaktags/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/freaktags/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/freaktags/core/contents/{+path}","compare_url":"https://api.github.com/repos/freaktags/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freaktags/core/merges","archive_url":"https://api.github.com/repos/freaktags/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freaktags/core/downloads","issues_url":"https://api.github.com/repos/freaktags/core/issues{/number}","pulls_url":"https://api.github.com/repos/freaktags/core/pulls{/number}","milestones_url":"https://api.github.com/repos/freaktags/core/milestones{/number}","notifications_url":"https://api.github.com/repos/freaktags/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freaktags/core/labels{/name}","releases_url":"https://api.github.com/repos/freaktags/core/releases{/id}","created_at":"2014-09-15T16:12:19Z","updated_at":"2015-04-16T23:09:36Z","pushed_at":"2015-04-17T23:45:20Z","git_url":"git://github.com/freaktags/core.git","ssh_url":"git@github.com:freaktags/core.git","clone_url":"https://github.com/freaktags/core.git","svn_url":"https://github.com/freaktags/core","homepage":"freaktags.com","size":1590,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":28,"forks":4,"open_issues":28,"watchers":2,"default_branch":"master"}},"base":{"label":"freaktags:master","ref":"master","sha":"b887dc6a3ce6df81516b671e9c631bf5e4cd06a2","user":{"login":"freaktags","id":3782107,"avatar_url":"https://avatars.githubusercontent.com/u/3782107?v=3","gravatar_id":"","url":"https://api.github.com/users/freaktags","html_url":"https://github.com/freaktags","followers_url":"https://api.github.com/users/freaktags/followers","following_url":"https://api.github.com/users/freaktags/following{/other_user}","gists_url":"https://api.github.com/users/freaktags/gists{/gist_id}","starred_url":"https://api.github.com/users/freaktags/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freaktags/subscriptions","organizations_url":"https://api.github.com/users/freaktags/orgs","repos_url":"https://api.github.com/users/freaktags/repos","events_url":"https://api.github.com/users/freaktags/events{/privacy}","received_events_url":"https://api.github.com/users/freaktags/received_events","type":"Organization","site_admin":false},"repo":{"id":24063357,"name":"core","full_name":"freaktags/core","owner":{"login":"freaktags","id":3782107,"avatar_url":"https://avatars.githubusercontent.com/u/3782107?v=3","gravatar_id":"","url":"https://api.github.com/users/freaktags","html_url":"https://github.com/freaktags","followers_url":"https://api.github.com/users/freaktags/followers","following_url":"https://api.github.com/users/freaktags/following{/other_user}","gists_url":"https://api.github.com/users/freaktags/gists{/gist_id}","starred_url":"https://api.github.com/users/freaktags/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freaktags/subscriptions","organizations_url":"https://api.github.com/users/freaktags/orgs","repos_url":"https://api.github.com/users/freaktags/repos","events_url":"https://api.github.com/users/freaktags/events{/privacy}","received_events_url":"https://api.github.com/users/freaktags/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/freaktags/core","description":"What have you been watching?","fork":false,"url":"https://api.github.com/repos/freaktags/core","forks_url":"https://api.github.com/repos/freaktags/core/forks","keys_url":"https://api.github.com/repos/freaktags/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/freaktags/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/freaktags/core/teams","hooks_url":"https://api.github.com/repos/freaktags/core/hooks","issue_events_url":"https://api.github.com/repos/freaktags/core/issues/events{/number}","events_url":"https://api.github.com/repos/freaktags/core/events","assignees_url":"https://api.github.com/repos/freaktags/core/assignees{/user}","branches_url":"https://api.github.com/repos/freaktags/core/branches{/branch}","tags_url":"https://api.github.com/repos/freaktags/core/tags","blobs_url":"https://api.github.com/repos/freaktags/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/freaktags/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/freaktags/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/freaktags/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/freaktags/core/statuses/{sha}","languages_url":"https://api.github.com/repos/freaktags/core/languages","stargazers_url":"https://api.github.com/repos/freaktags/core/stargazers","contributors_url":"https://api.github.com/repos/freaktags/core/contributors","subscribers_url":"https://api.github.com/repos/freaktags/core/subscribers","subscription_url":"https://api.github.com/repos/freaktags/core/subscription","commits_url":"https://api.github.com/repos/freaktags/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/freaktags/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/freaktags/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/freaktags/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/freaktags/core/contents/{+path}","compare_url":"https://api.github.com/repos/freaktags/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/freaktags/core/merges","archive_url":"https://api.github.com/repos/freaktags/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/freaktags/core/downloads","issues_url":"https://api.github.com/repos/freaktags/core/issues{/number}","pulls_url":"https://api.github.com/repos/freaktags/core/pulls{/number}","milestones_url":"https://api.github.com/repos/freaktags/core/milestones{/number}","notifications_url":"https://api.github.com/repos/freaktags/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/freaktags/core/labels{/name}","releases_url":"https://api.github.com/repos/freaktags/core/releases{/id}","created_at":"2014-09-15T16:12:19Z","updated_at":"2015-04-16T23:09:36Z","pushed_at":"2015-04-17T23:45:20Z","git_url":"git://github.com/freaktags/core.git","ssh_url":"git@github.com:freaktags/core.git","clone_url":"https://github.com/freaktags/core.git","svn_url":"https://github.com/freaktags/core","homepage":"freaktags.com","size":1590,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":28,"forks":4,"open_issues":28,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/freaktags/core/pulls/154"},"html":{"href":"https://github.com/freaktags/core/pull/154"},"issue":{"href":"https://api.github.com/repos/freaktags/core/issues/154"},"comments":{"href":"https://api.github.com/repos/freaktags/core/issues/154/comments"},"review_comments":{"href":"https://api.github.com/repos/freaktags/core/pulls/154/comments"},"review_comment":{"href":"https://api.github.com/repos/freaktags/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/freaktags/core/pulls/154/commits"},"statuses":{"href":"https://api.github.com/repos/freaktags/core/statuses/e031a9f18f9d9259158738554dd6323b0869b12a"}}}}