diff --git a/app/controllers/User.scala b/app/controllers/User.scala index 0d80d50030..3e61cf7fe2 100644 --- a/app/controllers/User.scala +++ b/app/controllers/User.scala @@ -248,14 +248,14 @@ object User extends LilaController { Env.plan.api.recentChargesOf(user) zip Env.report.api.byAndAbout(user, 20) zip Env.pref.api.getPref(user) zip - Env.irwin.api.status(user) zip - Env.user.noteApi.forMod(user.id) flatMap { - case emails ~ spy ~ assess ~ history ~ charges ~ reports ~ pref ~ irwin ~ notes => + Env.irwin.api.status(user) flatMap { + case emails ~ spy ~ assess ~ history ~ charges ~ reports ~ pref ~ irwin => (Env.playban.api bans spy.usersSharingIp.map(_.id)) zip + Env.user.noteApi.forMod(user.id :: spy.otherUserIds) zip Env.user.lightUserApi.preloadMany { reports.userIds ::: assess.??(_.games).flatMap(_.userIds) } map { - case (bans, _) => + case bans ~ notes ~ _ => html.user.mod(user, emails, spy, assess, bans, history, charges, reports, pref, irwin, notes) } } diff --git a/app/views/user/mod.scala.html b/app/views/user/mod.scala.html index 56e57ad959..d17b368d18 100644 --- a/app/views/user/mod.scala.html +++ b/app/views/user/mod.scala.html @@ -273,9 +273,9 @@