mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
VKAPI: Do not transliterate names
This commit is contained in:
parent
fddaea82dc
commit
e6a7ff6811
1 changed files with 4 additions and 7 deletions
|
@ -12,9 +12,6 @@ final class Users extends VKAPIRequestHandler
|
|||
$users = new UsersRepo;
|
||||
if($user_ids == "0")
|
||||
$user_ids = (string) $authuser->getId();
|
||||
|
||||
if($user_ids == "")
|
||||
return array();
|
||||
|
||||
$usrs = explode(',', $user_ids);
|
||||
$response = array();
|
||||
|
@ -39,8 +36,8 @@ final class Users extends VKAPIRequestHandler
|
|||
} else if($usr->isBanned()) {
|
||||
$response[$i] = (object)[
|
||||
"id" => $usr->getId(),
|
||||
"first_name" => $usr->getFirstName(),
|
||||
"last_name" => $usr->getLastName(),
|
||||
"first_name" => $usr->getFirstName(true),
|
||||
"last_name" => $usr->getLastName(true),
|
||||
"deactivated" => "banned",
|
||||
"ban_reason" => $usr->getBanReason()
|
||||
];
|
||||
|
@ -49,8 +46,8 @@ final class Users extends VKAPIRequestHandler
|
|||
} else {
|
||||
$response[$i] = (object)[
|
||||
"id" => $usr->getId(),
|
||||
"first_name" => $usr->getFirstName(),
|
||||
"last_name" => $usr->getLastName(),
|
||||
"first_name" => $usr->getFirstName(true),
|
||||
"last_name" => $usr->getLastName(true),
|
||||
"is_closed" => false,
|
||||
"can_access_closed" => true,
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue