VKAPI: fix sex :DDD

This commit is contained in:
veselcraft 2022-03-27 17:57:48 +03:00
parent 8caecbe362
commit 6ea9d81f7a
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -53,7 +53,7 @@ final class Users extends VKAPIRequestHandler
$response[$i]->verified = intval($usr->isVerified());
break;
case 'sex':
$response[$i]->sex = $authuser->isFemale() ? 1 : 2;
$response[$i]->sex = $usr->isFemale() ? 1 : 2;
break;
case 'has_photo':
$response[$i]->has_photo = is_null($usr->getAvatarPhoto()) ? 0 : 1;