{"action":"created","comment":{"url":"https://api.github.com/repos/kelvinr/myflix/pulls/comments/30236899","id":30236899,"diff_hunk":"@@ -0,0 +1,44 @@\n+%section.user.container\n+  .row\n+    .col-sm-10.col-sm-offset-1\n+      %article\n+        %header\n+          %img(src=\"http://www.gravatar.com/avatar/#{Digest::MD5.hexdigest(@user.email.downcase)}?s=40\")\n+          %h2\n+            = @user.full_name\n+            's video collections (#{@user.queue_items.count})\n+            = link_to \"Follow\", relationships_path(leader_id: @user.id), class: \"btn btn-default\", method: :post if current_user.can_follow?(@user)","path":"app/views/users/show.html.haml","position":10,"original_position":10,"commit_id":"abfff5e79a767cb0fb543f1164523988dc7c7b08","original_commit_id":"abfff5e79a767cb0fb543f1164523988dc7c7b08","user":{"login":"brandoncc","id":543973,"avatar_url":"https://avatars.githubusercontent.com/u/543973?v=3","gravatar_id":"","url":"https://api.github.com/users/brandoncc","html_url":"https://github.com/brandoncc","followers_url":"https://api.github.com/users/brandoncc/followers","following_url":"https://api.github.com/users/brandoncc/following{/other_user}","gists_url":"https://api.github.com/users/brandoncc/gists{/gist_id}","starred_url":"https://api.github.com/users/brandoncc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandoncc/subscriptions","organizations_url":"https://api.github.com/users/brandoncc/orgs","repos_url":"https://api.github.com/users/brandoncc/repos","events_url":"https://api.github.com/users/brandoncc/events{/privacy}","received_events_url":"https://api.github.com/users/brandoncc/received_events","type":"User","site_admin":false},"body":"You could shorten this one like this:\r\n\r\n``haml\r\n- if current_user.can_follow?(@user)\r\n  = link_to \"Follow\", relationships_path(leader_id: @user.id), class: \"btn btn-default\", method: :post \r\n```","created_at":"2015-05-13T14:40:56Z","updated_at":"2015-05-13T14:40:56Z","html_url":"https://github.com/kelvinr/myflix/pull/3#discussion_r30236899","pull_request_url":"https://api.github.com/repos/kelvinr/myflix/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/kelvinr/myflix/pulls/comments/30236899"},"html":{"href":"https://github.com/kelvinr/myflix/pull/3#discussion_r30236899"},"pull_request":{"href":"https://api.github.com/repos/kelvinr/myflix/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/kelvinr/myflix/pulls/3","id":35296262,"html_url":"https://github.com/kelvinr/myflix/pull/3","diff_url":"https://github.com/kelvinr/myflix/pull/3.diff","patch_url":"https://github.com/kelvinr/myflix/pull/3.patch","issue_url":"https://api.github.com/repos/kelvinr/myflix/issues/3","number":3,"state":"closed","locked":false,"title":"Basic social features","user":{"login":"kelvinr","id":5810191,"avatar_url":"https://avatars.githubusercontent.com/u/5810191?v=3","gravatar_id":"","url":"https://api.github.com/users/kelvinr","html_url":"https://github.com/kelvinr","followers_url":"https://api.github.com/users/kelvinr/followers","following_url":"https://api.github.com/users/kelvinr/following{/other_user}","gists_url":"https://api.github.com/users/kelvinr/gists{/gist_id}","starred_url":"https://api.github.com/users/kelvinr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelvinr/subscriptions","organizations_url":"https://api.github.com/users/kelvinr/orgs","repos_url":"https://api.github.com/users/kelvinr/repos","events_url":"https://api.github.com/users/kelvinr/events{/privacy}","received_events_url":"https://api.github.com/users/kelvinr/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-13T05:53:17Z","updated_at":"2015-05-13T14:40:56Z","closed_at":"2015-05-13T07:29:48Z","merged_at":"2015-05-13T07:29:48Z","merge_commit_sha":"2f312c4b56a5dfa982cd2aac48838630644fb712","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kelvinr/myflix/pulls/3/commits","review_comments_url":"https://api.github.com/repos/kelvinr/myflix/pulls/3/comments","review_comment_url":"https://api.github.com/repos/kelvinr/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kelvinr/myflix/issues/3/comments","statuses_url":"https://api.github.com/repos/kelvinr/myflix/statuses/abfff5e79a767cb0fb543f1164523988dc7c7b08","head":{"label":"kelvinr:basic_social_features","ref":"basic_social_features","sha":"abfff5e79a767cb0fb543f1164523988dc7c7b08","user":{"login":"kelvinr","id":5810191,"avatar_url":"https://avatars.githubusercontent.com/u/5810191?v=3","gravatar_id":"","url":"https://api.github.com/users/kelvinr","html_url":"https://github.com/kelvinr","followers_url":"https://api.github.com/users/kelvinr/followers","following_url":"https://api.github.com/users/kelvinr/following{/other_user}","gists_url":"https://api.github.com/users/kelvinr/gists{/gist_id}","starred_url":"https://api.github.com/users/kelvinr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelvinr/subscriptions","organizations_url":"https://api.github.com/users/kelvinr/orgs","repos_url":"https://api.github.com/users/kelvinr/repos","events_url":"https://api.github.com/users/kelvinr/events{/privacy}","received_events_url":"https://api.github.com/users/kelvinr/received_events","type":"User","site_admin":false},"repo":{"id":33289783,"name":"myflix","full_name":"kelvinr/myflix","owner":{"login":"kelvinr","id":5810191,"avatar_url":"https://avatars.githubusercontent.com/u/5810191?v=3","gravatar_id":"","url":"https://api.github.com/users/kelvinr","html_url":"https://github.com/kelvinr","followers_url":"https://api.github.com/users/kelvinr/followers","following_url":"https://api.github.com/users/kelvinr/following{/other_user}","gists_url":"https://api.github.com/users/kelvinr/gists{/gist_id}","starred_url":"https://api.github.com/users/kelvinr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelvinr/subscriptions","organizations_url":"https://api.github.com/users/kelvinr/orgs","repos_url":"https://api.github.com/users/kelvinr/repos","events_url":"https://api.github.com/users/kelvinr/events{/privacy}","received_events_url":"https://api.github.com/users/kelvinr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kelvinr/myflix","description":"","fork":false,"url":"https://api.github.com/repos/kelvinr/myflix","forks_url":"https://api.github.com/repos/kelvinr/myflix/forks","keys_url":"https://api.github.com/repos/kelvinr/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kelvinr/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kelvinr/myflix/teams","hooks_url":"https://api.github.com/repos/kelvinr/myflix/hooks","issue_events_url":"https://api.github.com/repos/kelvinr/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/kelvinr/myflix/events","assignees_url":"https://api.github.com/repos/kelvinr/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/kelvinr/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/kelvinr/myflix/tags","blobs_url":"https://api.github.com/repos/kelvinr/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kelvinr/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kelvinr/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/kelvinr/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kelvinr/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/kelvinr/myflix/languages","stargazers_url":"https://api.github.com/repos/kelvinr/myflix/stargazers","contributors_url":"https://api.github.com/repos/kelvinr/myflix/contributors","subscribers_url":"https://api.github.com/repos/kelvinr/myflix/subscribers","subscription_url":"https://api.github.com/repos/kelvinr/myflix/subscription","commits_url":"https://api.github.com/repos/kelvinr/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/kelvinr/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/kelvinr/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/kelvinr/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/kelvinr/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/kelvinr/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kelvinr/myflix/merges","archive_url":"https://api.github.com/repos/kelvinr/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kelvinr/myflix/downloads","issues_url":"https://api.github.com/repos/kelvinr/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/kelvinr/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/kelvinr/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/kelvinr/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kelvinr/myflix/labels{/name}","releases_url":"https://api.github.com/repos/kelvinr/myflix/releases{/id}","created_at":"2015-04-02T04:48:45Z","updated_at":"2015-04-25T06:25:22Z","pushed_at":"2015-05-13T08:02:25Z","git_url":"git://github.com/kelvinr/myflix.git","ssh_url":"git@github.com:kelvinr/myflix.git","clone_url":"https://github.com/kelvinr/myflix.git","svn_url":"https://github.com/kelvinr/myflix","homepage":null,"size":1016,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kelvinr:master","ref":"master","sha":"89a469e491d119ed60454cc169e301d6434b3f68","user":{"login":"kelvinr","id":5810191,"avatar_url":"https://avatars.githubusercontent.com/u/5810191?v=3","gravatar_id":"","url":"https://api.github.com/users/kelvinr","html_url":"https://github.com/kelvinr","followers_url":"https://api.github.com/users/kelvinr/followers","following_url":"https://api.github.com/users/kelvinr/following{/other_user}","gists_url":"https://api.github.com/users/kelvinr/gists{/gist_id}","starred_url":"https://api.github.com/users/kelvinr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelvinr/subscriptions","organizations_url":"https://api.github.com/users/kelvinr/orgs","repos_url":"https://api.github.com/users/kelvinr/repos","events_url":"https://api.github.com/users/kelvinr/events{/privacy}","received_events_url":"https://api.github.com/users/kelvinr/received_events","type":"User","site_admin":false},"repo":{"id":33289783,"name":"myflix","full_name":"kelvinr/myflix","owner":{"login":"kelvinr","id":5810191,"avatar_url":"https://avatars.githubusercontent.com/u/5810191?v=3","gravatar_id":"","url":"https://api.github.com/users/kelvinr","html_url":"https://github.com/kelvinr","followers_url":"https://api.github.com/users/kelvinr/followers","following_url":"https://api.github.com/users/kelvinr/following{/other_user}","gists_url":"https://api.github.com/users/kelvinr/gists{/gist_id}","starred_url":"https://api.github.com/users/kelvinr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelvinr/subscriptions","organizations_url":"https://api.github.com/users/kelvinr/orgs","repos_url":"https://api.github.com/users/kelvinr/repos","events_url":"https://api.github.com/users/kelvinr/events{/privacy}","received_events_url":"https://api.github.com/users/kelvinr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kelvinr/myflix","description":"","fork":false,"url":"https://api.github.com/repos/kelvinr/myflix","forks_url":"https://api.github.com/repos/kelvinr/myflix/forks","keys_url":"https://api.github.com/repos/kelvinr/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kelvinr/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kelvinr/myflix/teams","hooks_url":"https://api.github.com/repos/kelvinr/myflix/hooks","issue_events_url":"https://api.github.com/repos/kelvinr/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/kelvinr/myflix/events","assignees_url":"https://api.github.com/repos/kelvinr/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/kelvinr/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/kelvinr/myflix/tags","blobs_url":"https://api.github.com/repos/kelvinr/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kelvinr/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kelvinr/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/kelvinr/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kelvinr/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/kelvinr/myflix/languages","stargazers_url":"https://api.github.com/repos/kelvinr/myflix/stargazers","contributors_url":"https://api.github.com/repos/kelvinr/myflix/contributors","subscribers_url":"https://api.github.com/repos/kelvinr/myflix/subscribers","subscription_url":"https://api.github.com/repos/kelvinr/myflix/subscription","commits_url":"https://api.github.com/repos/kelvinr/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/kelvinr/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/kelvinr/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/kelvinr/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/kelvinr/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/kelvinr/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kelvinr/myflix/merges","archive_url":"https://api.github.com/repos/kelvinr/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kelvinr/myflix/downloads","issues_url":"https://api.github.com/repos/kelvinr/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/kelvinr/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/kelvinr/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/kelvinr/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kelvinr/myflix/labels{/name}","releases_url":"https://api.github.com/repos/kelvinr/myflix/releases{/id}","created_at":"2015-04-02T04:48:45Z","updated_at":"2015-04-25T06:25:22Z","pushed_at":"2015-05-13T08:02:25Z","git_url":"git://github.com/kelvinr/myflix.git","ssh_url":"git@github.com:kelvinr/myflix.git","clone_url":"https://github.com/kelvinr/myflix.git","svn_url":"https://github.com/kelvinr/myflix","homepage":null,"size":1016,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kelvinr/myflix/pulls/3"},"html":{"href":"https://github.com/kelvinr/myflix/pull/3"},"issue":{"href":"https://api.github.com/repos/kelvinr/myflix/issues/3"},"comments":{"href":"https://api.github.com/repos/kelvinr/myflix/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/kelvinr/myflix/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/kelvinr/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kelvinr/myflix/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/kelvinr/myflix/statuses/abfff5e79a767cb0fb543f1164523988dc7c7b08"}}}}