don't show your own current game in player tooltip - closes #2788

This commit is contained in:
Thibault Duplessis 2017-03-15 16:07:15 +01:00
parent 427613a0b2
commit de69a4420c

View file

@ -54,7 +54,7 @@ object User extends LilaController {
followable <- ctx.isAuth ?? { Env.pref.api.followable(user.id) } followable <- ctx.isAuth ?? { Env.pref.api.followable(user.id) }
relation <- ctx.userId ?? { relationApi.fetchRelation(_, user.id) } relation <- ctx.userId ?? { relationApi.fetchRelation(_, user.id) }
res <- negotiate( res <- negotiate(
html = GameRepo lastPlayedPlaying user map { pov => html = !ctx.is(user) ?? GameRepo.lastPlayedPlaying(user) map { pov =>
Ok(html.user.mini(user, pov, blocked, followable, relation, crosstable)) Ok(html.user.mini(user, pov, blocked, followable, relation, crosstable))
.withHeaders(CACHE_CONTROL -> "max-age=5") .withHeaders(CACHE_CONTROL -> "max-age=5")
}, },