HabitRPG/habitrpg — pull request #1986 by Magnilucent (2013-12-14 07:39:35+00:00)
Title: Fixes #1959: petCount was only being updated...

in groupsCtrl.js. This made profile.petCount blank unless the current
user viewed himself in chat. I put the code to set profile.petCount into
userCtrl.js.

Note: petCount (not profile.petCount) is still always equal to the
current user's pet count. There is probably a better solution than this,
I just don't know enough about AngularJS to make it.