incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r889233 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/api/TwitterAPI.scala
Date Thu, 10 Dec 2009 12:26:23 GMT
Author: vdichev
Date: Thu Dec 10 12:26:07 2009
New Revision: 889233

URL: http://svn.apache.org/viewvc?rev=889233&view=rev
Log:
Fix replies and direct messages in Twitter API

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=889233&r1=889232&r2=889233&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 Thu Dec
10 12:26:07 2009
@@ -218,8 +218,7 @@
   
   def replies(user: User): TwitterResponse = {
     val statusList = 
-      Message.findAll(By(Message.author, user),
-                      NotNullRef(Message.conversation),
+      Message.findAll(In(Message.replyTo, Message.id, By(Message.author, user)),
                       MaxRows(20),
                       OrderBy(Message.id, Descending)).
         map(msgData _)
@@ -231,7 +230,7 @@
   }
 
   def directMessages(): Box[TwitterResponse] = {
-    Full(Left("direct_messages" -> Nil))
+    Full(Right(Map("direct-messages" -> ("direct_message", Nil))))
   }
 
   def publicTimeline(): Box[TwitterResponse] = {



Mime
View raw message