VKAPI: Fix Users.get with field=counters

This commit is contained in:
Dmitry Tretyakov 2023-12-13 21:24:40 +07:00 committed by GitHub
parent e813549602
commit 4548e2290a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -240,7 +240,7 @@ final class Users extends VKAPIRequestHandler
case "counters": case "counters":
$response[$i]->counters = (object) [ $response[$i]->counters = (object) [
"friends_count" => $usr->getFriendsCount(), "friends_count" => $usr->getFriendsCount(),
"photos_count" => (new Albums)->getUserPhotosCount($usr), "photos_count" => (new Photos)->getUserPhotosCount($usr),
"videos_count" => (new Videos)->getUserVideosCount($usr), "videos_count" => (new Videos)->getUserVideosCount($usr),
"audios_count" => (new Audios)->getUserCollectionSize($usr), "audios_count" => (new Audios)->getUserCollectionSize($usr),
"notes_count" => (new Notes)->getUserNotesCount($usr) "notes_count" => (new Notes)->getUserNotesCount($usr)