From 01b6b0bf8d79a4b83235e981be2de95e47d69405 Mon Sep 17 00:00:00 2001 From: aymm Date: Thu, 11 Mar 2021 20:13:03 +0000 Subject: [PATCH] Fixed getting authorized user --- src/APnutI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/APnutI.php b/src/APnutI.php index c4f0fd0..9372223 100644 --- a/src/APnutI.php +++ b/src/APnutI.php @@ -487,7 +487,7 @@ class APnutI public function getAuthorizedUser(): User { - return $this->getUser('/me'); + return new User($this->get('/users/me'), $this); } public function getUser(int $user_id, array $args = [])