mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Fixes #27. Serialize empty textures as an object
This commit is contained in:
@@ -36,6 +36,10 @@ return [
|
||||
}
|
||||
|
||||
public function profile(string $username, bool $signed = false): ?array {
|
||||
if ($username === 'NotSynchronized') {
|
||||
return null;
|
||||
}
|
||||
|
||||
$account = common\models\Account::findOne(['username' => $username]);
|
||||
$uuid = $account ? str_replace('-', '', $account->uuid) : '00000000000000000000000000000000';
|
||||
|
||||
|
Reference in New Issue
Block a user