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;
|
$users = new UsersRepo;
|
||||||
if($user_ids == "0")
|
if($user_ids == "0")
|
||||||
$user_ids = (string) $authuser->getId();
|
$user_ids = (string) $authuser->getId();
|
||||||
|
|
||||||
if($user_ids == "")
|
|
||||||
return array();
|
|
||||||
|
|
||||||
$usrs = explode(',', $user_ids);
|
$usrs = explode(',', $user_ids);
|
||||||
$response = array();
|
$response = array();
|
||||||
|
@ -39,8 +36,8 @@ final class Users extends VKAPIRequestHandler
|
||||||
} else if($usr->isBanned()) {
|
} else if($usr->isBanned()) {
|
||||||
$response[$i] = (object)[
|
$response[$i] = (object)[
|
||||||
"id" => $usr->getId(),
|
"id" => $usr->getId(),
|
||||||
"first_name" => $usr->getFirstName(),
|
"first_name" => $usr->getFirstName(true),
|
||||||
"last_name" => $usr->getLastName(),
|
"last_name" => $usr->getLastName(true),
|
||||||
"deactivated" => "banned",
|
"deactivated" => "banned",
|
||||||
"ban_reason" => $usr->getBanReason()
|
"ban_reason" => $usr->getBanReason()
|
||||||
];
|
];
|
||||||
|
@ -49,8 +46,8 @@ final class Users extends VKAPIRequestHandler
|
||||||
} else {
|
} else {
|
||||||
$response[$i] = (object)[
|
$response[$i] = (object)[
|
||||||
"id" => $usr->getId(),
|
"id" => $usr->getId(),
|
||||||
"first_name" => $usr->getFirstName(),
|
"first_name" => $usr->getFirstName(true),
|
||||||
"last_name" => $usr->getLastName(),
|
"last_name" => $usr->getLastName(true),
|
||||||
"is_closed" => false,
|
"is_closed" => false,
|
||||||
"can_access_closed" => true,
|
"can_access_closed" => true,
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue