Skip to content

Commit 9c5dcc2

Browse files
author
Ataris
authored
urldecode username
resolve #31
1 parent 4e4991e commit 9c5dcc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/Controller/ShowUserController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function data(ServerRequestInterface $request, Document $document)
4848
$id = array_get($request->getQueryParams(), 'id');
4949

5050
if (! is_numeric($id)) {
51-
$id = $this->users->getIdForUsername($id);
51+
$id = $this->users->getIdForUsername(urldecode($id));
5252
}
5353

5454
$actor = $request->getAttribute('actor');

0 commit comments

Comments
 (0)