Skip to content

Commit

Permalink
urldecode username
Browse files Browse the repository at this point in the history
resolve #31
  • Loading branch information
Ataris authored and Ataris committed Jun 15, 2017
1 parent 0960644 commit 8d017c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Controller/ShowUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 8d017c3

Please sign in to comment.