load the homepage even without tourneys, simuls, or recent posts
This commit is contained in:
parent
2693fc2d84
commit
22db72e1eb
|
@ -70,10 +70,10 @@ object Lobby extends LilaController {
|
||||||
expireAfter = _.ExpireAfterWrite(1 second))
|
expireAfter = _.ExpireAfterWrite(1 second))
|
||||||
|
|
||||||
private def renderCtx(implicit ctx: Context): Fu[Html] = Env.current.preloader(
|
private def renderCtx(implicit ctx: Context): Fu[Html] = Env.current.preloader(
|
||||||
posts = Env.forum.recent(ctx.me, Env.team.cached.teamIds),
|
posts = Env.forum.recent(ctx.me, Env.team.cached.teamIds).nevermind,
|
||||||
tours = Env.tournament.cached.promotable.get,
|
tours = Env.tournament.cached.promotable.get.nevermind,
|
||||||
events = Env.event.api.promotable.get,
|
events = Env.event.api.promotable.get.nevermind,
|
||||||
simuls = Env.simul.allCreatedFeaturable.get
|
simuls = Env.simul.allCreatedFeaturable.get.nevermind
|
||||||
) map (html.lobby.home.apply _).tupled
|
) map (html.lobby.home.apply _).tupled
|
||||||
|
|
||||||
private def renderRequestKey(r: RequestKey): Fu[Html] = renderCtx {
|
private def renderRequestKey(r: RequestKey): Fu[Html] = renderCtx {
|
||||||
|
|
Loading…
Reference in a new issue