From 4548e2290a195e184aedd1d1c88dc75535c6ffa0 Mon Sep 17 00:00:00 2001 From: Dmitry Tretyakov <76806170+tretdm@users.noreply.github.com> Date: Wed, 13 Dec 2023 21:24:40 +0700 Subject: [PATCH] VKAPI: Fix `Users.get` with `field=counters` --- VKAPI/Handlers/Users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VKAPI/Handlers/Users.php b/VKAPI/Handlers/Users.php index 961d0c5f..5ad59541 100644 --- a/VKAPI/Handlers/Users.php +++ b/VKAPI/Handlers/Users.php @@ -240,7 +240,7 @@ final class Users extends VKAPIRequestHandler case "counters": $response[$i]->counters = (object) [ "friends_count" => $usr->getFriendsCount(), - "photos_count" => (new Albums)->getUserPhotosCount($usr), + "photos_count" => (new Photos)->getUserPhotosCount($usr), "videos_count" => (new Videos)->getUserVideosCount($usr), "audios_count" => (new Audios)->getUserCollectionSize($usr), "notes_count" => (new Notes)->getUserNotesCount($usr)