fix account URL shortcut for usernames with 12 chars

sigmoid-playban-dropoff
Thibault Duplessis 2020-08-21 12:28:05 +02:00
parent e18eb0e634
commit 5eef2a7cb5
1 changed files with 3 additions and 2 deletions

View File

@ -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
}
}