{"action":"created","issue":{"url":"https://api.github.com/repos/jamesmskelsey/jk-odin-book/issues/2","labels_url":"https://api.github.com/repos/jamesmskelsey/jk-odin-book/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jamesmskelsey/jk-odin-book/issues/2/comments","events_url":"https://api.github.com/repos/jamesmskelsey/jk-odin-book/issues/2/events","html_url":"https://github.com/jamesmskelsey/jk-odin-book/issues/2","id":109655443,"number":2,"title":"Friend requests","user":{"login":"jamesmskelsey","id":12484140,"avatar_url":"https://avatars.githubusercontent.com/u/12484140?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmskelsey","html_url":"https://github.com/jamesmskelsey","followers_url":"https://api.github.com/users/jamesmskelsey/followers","following_url":"https://api.github.com/users/jamesmskelsey/following{/other_user}","gists_url":"https://api.github.com/users/jamesmskelsey/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmskelsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmskelsey/subscriptions","organizations_url":"https://api.github.com/users/jamesmskelsey/orgs","repos_url":"https://api.github.com/users/jamesmskelsey/repos","events_url":"https://api.github.com/users/jamesmskelsey/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmskelsey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jamesmskelsey/jk-odin-book/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"jamesmskelsey","id":12484140,"avatar_url":"https://avatars.githubusercontent.com/u/12484140?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmskelsey","html_url":"https://github.com/jamesmskelsey","followers_url":"https://api.github.com/users/jamesmskelsey/followers","following_url":"https://api.github.com/users/jamesmskelsey/following{/other_user}","gists_url":"https://api.github.com/users/jamesmskelsey/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmskelsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmskelsey/subscriptions","organizations_url":"https://api.github.com/users/jamesmskelsey/orgs","repos_url":"https://api.github.com/users/jamesmskelsey/repos","events_url":"https://api.github.com/users/jamesmskelsey/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmskelsey/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-10-04T01:17:43Z","updated_at":"2015-10-04T02:18:21Z","closed_at":null,"body":"Adding another user as a friend automatically adds their feed to your own before that other user has had a chance to decline/accept the friend request."},"comment":{"url":"https://api.github.com/repos/jamesmskelsey/jk-odin-book/issues/comments/145309227","html_url":"https://github.com/jamesmskelsey/jk-odin-book/issues/2#issuecomment-145309227","issue_url":"https://api.github.com/repos/jamesmskelsey/jk-odin-book/issues/2","id":145309227,"user":{"login":"jamesmskelsey","id":12484140,"avatar_url":"https://avatars.githubusercontent.com/u/12484140?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmskelsey","html_url":"https://github.com/jamesmskelsey","followers_url":"https://api.github.com/users/jamesmskelsey/followers","following_url":"https://api.github.com/users/jamesmskelsey/following{/other_user}","gists_url":"https://api.github.com/users/jamesmskelsey/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmskelsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmskelsey/subscriptions","organizations_url":"https://api.github.com/users/jamesmskelsey/orgs","repos_url":"https://api.github.com/users/jamesmskelsey/repos","events_url":"https://api.github.com/users/jamesmskelsey/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmskelsey/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T02:18:21Z","updated_at":"2015-10-04T02:18:21Z","body":"#1 Corrected issue by adding a \"realfriends\" function in the User class. collects and returns an array of the current users friends that have accepted the friend invite. I'm pretty sure it works because the user class is calling Friendship.where.... that's the only thing that makes sense. Because honestly I'm not sure that should work. Huh.... cool."}}