fix account URL shortcut for usernames with 12 chars
This commit is contained in:
parent
e18eb0e634
commit
5eef2a7cb5
|
@ -79,8 +79,9 @@ final class Round(
|
||||||
|
|
||||||
def player(fullId: String) =
|
def player(fullId: String) =
|
||||||
Open { implicit ctx =>
|
Open { implicit ctx =>
|
||||||
OptionFuResult(env.round.proxyRepo.pov(fullId)) { pov =>
|
env.round.proxyRepo.pov(fullId) flatMap {
|
||||||
renderPlayer(pov)
|
case Some(pov) => renderPlayer(pov)
|
||||||
|
case None => userC.tryRedirect(fullId) getOrElse notFound
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue