{"action":"closed","pull_request":{"review_comments":0,"state":"closed","created_at":"2011-11-28T02:20:06Z","updated_at":"2011-11-28T16:09:25Z","patch_url":"https://github.com/eldarion/phileo/pull/4.patch","changed_files":2,"_links":{"review_comments":{"href":"https://api.github.com/repos/eldarion/phileo/pulls/4/comments"},"comments":{"href":"https://api.github.com/repos/eldarion/phileo/issues/4/comments"},"html":{"href":"https://github.com/eldarion/phileo/pull/4"},"self":{"href":"https://api.github.com/repos/eldarion/phileo/pulls/4"}},"user":{"gravatar_id":"4ea13c0ade9aa384ebaa29b433c39421","id":132147,"url":"https://api.github.com/users/maelstrom","avatar_url":"https://secure.gravatar.com/avatar/4ea13c0ade9aa384ebaa29b433c39421?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"maelstrom"},"comments":1,"issue_url":"https://github.com/eldarion/phileo/issues/4","body":"Anonymous users do not have the `likes` collection, so the widget breaks. I added a check for anonymous users, which\r\n\r\n1. Does not break the view when the user is anonymous\r\n2. Does not render the 'like' button when the user is anonymous. The count is still shown","merged":false,"deletions":11,"commits":1,"mergeable":false,"number":4,"id":532149,"base":{"user":{"gravatar_id":"cceb48375f16e2a05082ea6f7cce1140","id":60045,"url":"https://api.github.com/users/eldarion","avatar_url":"https://secure.gravatar.com/avatar/cceb48375f16e2a05082ea6f7cce1140?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","login":"eldarion"},"repo":{"created_at":"2011-09-05T08:02:36Z","pushed_at":"2011-11-28T16:03:29Z","clone_url":"https://github.com/eldarion/phileo.git","updated_at":"2011-11-28T16:03:29Z","private":false,"svn_url":"https://svn.github.com/eldarion/phileo","name":"phileo","watchers":18,"master_branch":null,"language":"Python","forks":6,"owner":{"gravatar_id":"cceb48375f16e2a05082ea6f7cce1140","id":60045,"url":"https://api.github.com/users/eldarion","avatar_url":"https://secure.gravatar.com/avatar/cceb48375f16e2a05082ea6f7cce1140?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","login":"eldarion"},"id":2326967,"homepage":"http://phileo.readthedocs.org","description":"a liking app","git_url":"git://github.com/eldarion/phileo.git","html_url":"https://github.com/eldarion/phileo","size":184,"fork":false,"url":"https://api.github.com/repos/eldarion/phileo","open_issues":2,"ssh_url":"git@github.com:eldarion/phileo.git"},"sha":"eb56d271b44a4dfac061125cbce688d43836ef36","ref":"master","label":"eldarion:master"},"additions":19,"merged_by":null,"title":"The widget breaks with anonymous users","head":{"user":{"gravatar_id":"4ea13c0ade9aa384ebaa29b433c39421","id":132147,"url":"https://api.github.com/users/maelstrom","avatar_url":"https://secure.gravatar.com/avatar/4ea13c0ade9aa384ebaa29b433c39421?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"maelstrom"},"repo":{"created_at":"2011-11-25T00:51:48Z","pushed_at":"2011-11-28T06:35:49Z","clone_url":"https://github.com/maelstrom/phileo.git","updated_at":"2011-11-28T06:35:49Z","private":false,"svn_url":"https://svn.github.com/maelstrom/phileo","name":"phileo","watchers":1,"master_branch":null,"language":"Python","forks":0,"owner":{"gravatar_id":"4ea13c0ade9aa384ebaa29b433c39421","id":132147,"url":"https://api.github.com/users/maelstrom","avatar_url":"https://secure.gravatar.com/avatar/4ea13c0ade9aa384ebaa29b433c39421?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"maelstrom"},"id":2846841,"homepage":"http://phileo.readthedocs.org","description":"a liking app","git_url":"git://github.com/maelstrom/phileo.git","html_url":"https://github.com/maelstrom/phileo","size":116,"fork":true,"url":"https://api.github.com/repos/maelstrom/phileo","open_issues":0,"ssh_url":"git@github.com:maelstrom/phileo.git"},"sha":"71a2daedc97184ffed520baf86acde361ee3eb5a","ref":"anonymous-users","label":"maelstrom:anonymous-users"},"closed_at":"2011-11-28T16:09:25Z","html_url":"https://github.com/eldarion/phileo/pull/4","diff_url":"https://github.com/eldarion/phileo/pull/4.diff","url":"https://api.github.com/repos/eldarion/phileo/pulls/4","merged_at":null},"number":4}