Fixes #27. Serialize empty textures as an object

This commit is contained in:
ErickSkrauch
2022-12-05 22:50:22 +01:00
parent 26b2168ae3
commit b113beb78e
4 changed files with 40 additions and 2 deletions

View File

@@ -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';