We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae87425 + bb7389e commit 6583f19Copy full SHA for 6583f19
src/Client.php
@@ -169,6 +169,10 @@ public function getUserByIdOrUsername(string $idOrUsername)
169
$user = new User();
170
$user->id = $userRow['id'];
171
$user->username = $userRow['username'];
172
+ $user->email = $userRow['email'];
173
+ $user->firstName = $userRow['first_name'];
174
+ $user->lastName = $userRow['last_name'];
175
+ $user->birthday = $userRow['birthday'] == NULL ? NULL : $userRow['birthday'];
176
$user->avatarUrl = $this->apiEndpoint . '/avatar/' . $user->id;
177
178
return $user;
0 commit comments