Pass $user->ID to json_get_avatar_url()

#585