From de69a4420c6bc9948e275b7c9f0bea090f76d47d Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Wed, 15 Mar 2017 16:07:15 +0100 Subject: [PATCH] don't show your own current game in player tooltip - closes #2788 --- app/controllers/User.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/User.scala b/app/controllers/User.scala index 49d8b4209b..74cdbfc1a8 100644 --- a/app/controllers/User.scala +++ b/app/controllers/User.scala @@ -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") },