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