Author: lryan
Date: Mon Sep  8 17:57:22 2008
New Revision: 693331

URL: http://svn.apache.org/viewvc?rev=693331&view=rev
Log:
Fix to correctly default @me when no userId specified

Modified:
    
incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/RequestItem.java

Modified: 
incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/RequestItem.java
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/RequestItem.java?rev=693331&r1=693330&r2=693331&view=diff
==============================================================================
--- 
incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/RequestItem.java
 (original)
+++ 
incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/service/RequestItem.java
 Mon Sep  8 17:57:22 2008
@@ -18,11 +18,11 @@
 package org.apache.shindig.social.opensocial.service;
 
 import org.apache.shindig.auth.SecurityToken;
+import org.apache.shindig.social.ResponseError;
 import org.apache.shindig.social.opensocial.spi.GroupId;
 import org.apache.shindig.social.opensocial.spi.PersonService;
-import org.apache.shindig.social.opensocial.spi.UserId;
 import org.apache.shindig.social.opensocial.spi.SocialSpiException;
-import org.apache.shindig.social.ResponseError;
+import org.apache.shindig.social.opensocial.spi.UserId;
 
 import com.google.common.collect.Lists;
 import com.google.common.collect.Sets;
@@ -92,7 +92,7 @@
     if (ids.isEmpty()) {
       if (token.getViewerId() != null) {
         // Assume @me
-        ids = Lists.newArrayList(token.getViewerId());
+        ids = Lists.newArrayList("@me");
       } else {
         throw new IllegalArgumentException("No userId provided and viewer not 
available");
       }


Reply via email to