From 9c5dcc2523ac81af74e0151393dbfe5a28b78b29 Mon Sep 17 00:00:00 2001 From: Ataris Date: Thu, 15 Jun 2017 22:10:12 +0800 Subject: [PATCH] urldecode username resolve #31 --- src/Api/Controller/ShowUserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/Controller/ShowUserController.php b/src/Api/Controller/ShowUserController.php index fd35b28672..c25bd3bdbc 100644 --- a/src/Api/Controller/ShowUserController.php +++ b/src/Api/Controller/ShowUserController.php @@ -48,7 +48,7 @@ protected function data(ServerRequestInterface $request, Document $document) $id = array_get($request->getQueryParams(), 'id'); if (! is_numeric($id)) { - $id = $this->users->getIdForUsername($id); + $id = $this->users->getIdForUsername(urldecode($id)); } $actor = $request->getAttribute('actor');