Fixed getting authorized user
This commit is contained in:
parent
171b4a0ec6
commit
01b6b0bf8d
@ -487,7 +487,7 @@ class APnutI
|
|||||||
|
|
||||||
public function getAuthorizedUser(): User
|
public function getAuthorizedUser(): User
|
||||||
{
|
{
|
||||||
return $this->getUser('/me');
|
return new User($this->get('/users/me'), $this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getUser(int $user_id, array $args = [])
|
public function getUser(int $user_id, array $args = [])
|
||||||
|
Loading…
Reference in New Issue
Block a user