From 314f38799e3a7f753604e6a97e276c031e55fdd8 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Wed, 29 May 2013 14:13:43 +0200 Subject: [PATCH] fix topic order --- modules/forum/src/main/TopicApi.scala | 2 +- modules/lobby/src/main/Lobby.scala | 2 +- todo | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/forum/src/main/TopicApi.scala b/modules/forum/src/main/TopicApi.scala index e8d9251601..c6ed532fc8 100644 --- a/modules/forum/src/main/TopicApi.scala +++ b/modules/forum/src/main/TopicApi.scala @@ -62,7 +62,7 @@ private[forum] final class TopicApi( def paginator(categ: Categ, page: Int, troll: Boolean): Fu[Paginator[TopicView]] = Paginator( adapter = new Adapter[Topic]( selector = TopicRepo(troll) byCategQuery categ, - sort = Seq($sort.createdDesc) + sort = Seq($sort.updatedDesc) ) mapFuture { topic ⇒ $find.byId[Post](topic lastPostId troll) map { post ⇒ TopicView(categ, topic, post, env.postApi lastPageOf topic, troll) diff --git a/modules/lobby/src/main/Lobby.scala b/modules/lobby/src/main/Lobby.scala index ba72c2ba5b..2ac013f571 100644 --- a/modules/lobby/src/main/Lobby.scala +++ b/modules/lobby/src/main/Lobby.scala @@ -27,7 +27,7 @@ private[lobby] final class Lobby( socket ! msg } - case msg @ CancelHook(uid) ⇒ { + case CancelHook(uid) ⇒ { HookRepo byUid uid foreach remove } diff --git a/todo b/todo index b5bc4ee89f..a48b5fd959 100644 --- a/todo +++ b/todo @@ -72,6 +72,10 @@ if game ends during move -> bug friends box only works well on homepage Norb and other canot log in search bug http://fr.lichess.org/forum/search?text=user:aybabtu +hooks do not always disappear +hook actor expiration (view forum thread) +no nb players in game +always same number of players (!) DEPLOY p21 ----------