VKAPI: descuido del desarrollador momento, number tres

Somehow for Friends.getRequests extended parameter was required to use fiels. Now it's not
This commit is contained in:
veselcraft 2023-01-31 02:40:29 +03:00
parent aca48e726e
commit 700dcc121d
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -152,10 +152,7 @@ final class Friends extends VKAPIRequestHandler
$response = $followers; $response = $followers;
$usersApi = new Users($this->getUser()); $usersApi = new Users($this->getUser());
if($extended == 1)
$response = $usersApi->get(implode(',', $followers), $fields, 0, $count); $response = $usersApi->get(implode(',', $followers), $fields, 0, $count);
else
$response = $usersApi->get(implode(',', $followers), "", 0, $count);
foreach($response as $user) foreach($response as $user)
$user->user_id = $user->id; $user->user_id = $user->id;