mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
VKAPI(Wall.get): fix count param
This commit is contained in:
parent
33dbc984f2
commit
9ae7164105
1 changed files with 7 additions and 7 deletions
|
@ -19,7 +19,7 @@ final class Wall extends VKAPIRequestHandler
|
||||||
$items = [];
|
$items = [];
|
||||||
$profiles = [];
|
$profiles = [];
|
||||||
$groups = [];
|
$groups = [];
|
||||||
$count = $posts->getPostCountOnUserWall($owner_id);
|
$cnt = $posts->getPostCountOnUserWall($owner_id);
|
||||||
|
|
||||||
$wallOnwer = (new UsersRepo)->get($owner_id);
|
$wallOnwer = (new UsersRepo)->get($owner_id);
|
||||||
|
|
||||||
|
@ -143,15 +143,15 @@ final class Wall extends VKAPIRequestHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
return (object) [
|
return (object) [
|
||||||
"count" => $count,
|
"count" => $cnt,
|
||||||
"items" => (array)$items,
|
"items" => $items,
|
||||||
"profiles" => (array)$profilesFormatted,
|
"profiles" => $profilesFormatted,
|
||||||
"groups" => (array)$groupsFormatted
|
"groups" => $groupsFormatted
|
||||||
];
|
];
|
||||||
} else
|
} else
|
||||||
return (object) [
|
return (object) [
|
||||||
"count" => $count,
|
"count" => $cnt,
|
||||||
"items" => (array)$items
|
"items" => $items
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue