|
|
@ -71,7 +71,7 @@ class ApiUserInfo extends ApiBase {
|
|
|
|
'realname' => $user->getRealName(),
|
|
|
|
'realname' => $user->getRealName(),
|
|
|
|
// 'nickname' => $userOptionsLookup->getOption($user, 'nickname'),
|
|
|
|
// 'nickname' => $userOptionsLookup->getOption($user, 'nickname'),
|
|
|
|
'email' => $user->getEmail(),
|
|
|
|
'email' => $user->getEmail(),
|
|
|
|
'nocost' => false
|
|
|
|
'unlimitedusage' => false
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
// Get user points from IsekaiUserPoints
|
|
|
|
// Get user points from IsekaiUserPoints
|
|
|
@ -87,7 +87,7 @@ class ApiUserInfo extends ApiBase {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($user->isAllowed('aitoolbox-unlimited')) {
|
|
|
|
if ($user->isAllowed('aitoolbox-unlimited')) {
|
|
|
|
$userInfo['nocost'] = true;
|
|
|
|
$userInfo['unlimitedusage'] = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Get user avatar
|
|
|
|
// Get user avatar
|
|
|
|