Skip to content

Commit

Permalink
VKAPI: Fix Users.get with field=counters
Browse files Browse the repository at this point in the history
  • Loading branch information
tretdm authored Dec 13, 2023
1 parent e813549 commit 4548e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VKAPI/Handlers/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function get(string $user_ids = "0", string $fields = "", int $offset = 0, int $
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)
Expand Down

1 comment on commit 4548e22

@tretdm
Copy link
Contributor Author

@tretdm tretdm commented on 4548e22 Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

хотя было бы логично назвать коммит по-другому, а поскольку о переходе на conventional commits я не знал, то и не думал об этом

Please sign in to comment.