incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r921398 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/snippet/TagDisplay.scala
Date Wed, 10 Mar 2010 15:27:43 GMT
Author: vdichev
Date: Wed Mar 10 15:27:43 2010
New Revision: 921398

URL: http://svn.apache.org/viewvc?rev=921398&view=rev
Log:
Fix timeline in users page

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/snippet/TagDisplay.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/snippet/TagDisplay.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/snippet/TagDisplay.scala?rev=921398&r1=921397&r2=921398&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/snippet/TagDisplay.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/snippet/TagDisplay.scala Wed
Mar 10 15:27:43 2010
@@ -64,7 +64,9 @@ object TagDisplay {
          "nicename" -> user.niceName,
          "followButton" -> followOrNot,
          "timeline" -> bindTag(Mailbox.mostRecentMessagesFor(user.id, 50).map(_._1)) _,
-         "messages" -> bindTag(Message.findAll(By(Message.author, user), MaxRows(50),
OrderBy(Message.id, Descending))) _,
+         "messages" -> bindTag(Message.findAll(In(Message.id, Mailbox.message, By(Mailbox.user,
user)),
+                                               MaxRows(50),
+                                               OrderBy(Message.id, Descending))) _,
          AttrBindParam("userId", Text(user.id.toString),"userId")
     )
   



Mime
View raw message