incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r887600 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala
Date Sat, 05 Dec 2009 22:26:21 GMT
Author: vdichev
Date: Sat Dec  5 22:26:21 2009
New Revision: 887600

URL: http://svn.apache.org/viewvc?rev=887600&view=rev
Log:
Skip messages in pools in TwitterAPI

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala?rev=887600&r1=887599&r2=887600&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala Sat Dec
 5 22:26:21 2009
@@ -169,6 +169,7 @@
   
   def userData(user: User) = {
     val lastMsg = Message.findAll(By(Message.author, user),
+                                  By(Message.pool, Empty),
                                   OrderBy(Message.id, Descending),
                                   MaxRows(1))
     userAttributes(user) +
@@ -200,6 +201,7 @@
   def userTimeline(user: User): TwitterResponse = {
     val statusList = 
       Message.findAll(By(Message.author, user),
+                      By(Message.pool, Empty),
                       MaxRows(20),
                       OrderBy(Message.id, Descending)).
         map(msgData _)
@@ -235,7 +237,8 @@
   def publicTimeline(): Box[TwitterResponse] = {
     val statusList =
       Message.findAll(OrderBy(Message.id, Descending),
-                      MaxRows(20)).
+                      MaxRows(20),
+                      By(Message.pool, Empty)).
         map(msgData _)
     Full(Right(Map("statuses" -> ("status", statusList) )))
   }



Mime
View raw message