VKAPI: Add banned (not only deleted!) user stub

Final fix #622
This commit is contained in:
Dmitry Tretyakov 2023-07-02 13:11:49 +07:00
parent 3ae9def10a
commit b35b87567b

View file

@ -32,7 +32,15 @@ final class Users extends VKAPIRequestHandler
"first_name" => "DELETED",
"last_name" => "",
"deactivated" => "deleted"
];
];
} else if($usr->isBanned()) {
$response[$i] = (object)[
"id" => $usr->getId(),
"first_name" => $usr->getFirstName(),
"last_name" => $usr->getLastName(),
"deactivated" => "banned",
"ban_reason" => $usr->getBanReason()
];
} else if($usrs[$i] == NULL) {
} else {