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

pull/2795/head
Thibault Duplessis 2017-03-15 16:07:15 +01:00
parent 427613a0b2
commit de69a4420c
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ object User extends LilaController {
followable <- ctx.isAuth ?? { Env.pref.api.followable(user.id) }
relation <- ctx.userId ?? { relationApi.fetchRelation(_, user.id) }
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))
.withHeaders(CACHE_CONTROL -> "max-age=5")
},