[jopensocial commit] r44 - no log message

0 views
Skip to first unread message

codesite...@google.com

unread,
Apr 24, 2009, 5:26:45 AM4/24/09
to jopen...@googlegroups.com
Author: atsn.ngs
Date: Fri Apr 24 02:16:48 2009
New Revision: 44

Modified:
trunk/src/jopensocial.js

Log:


Modified: trunk/src/jopensocial.js
==============================================================================
--- trunk/src/jopensocial.js (original)
+++ trunk/src/jopensocial.js Fri Apr 24 02:16:48 2009
@@ -317,7 +317,8 @@
return val;
}

- var ids = userId.match(/^(viewer|owner)_friends$/);
+ var ids = userId.match(/^(viewer|owner)_friends$/i);
+ var ov = userId.match(/^viewer$|^owner$/i);
if(ids) {
var idSpec = opensocial.newIdSpec({userId:ids[1].toUpperCase(),
groupId:"FRIENDS"})
var obj = {
@@ -334,6 +335,7 @@
callback(vals);
});
} else {
+ if(ov) userId = ov[0].toUpperCase();
var psn = person(userId,function(psn){
if(!psn) {
callback(null); return;
@@ -344,7 +346,7 @@
return;
}
var obj = {
- userData : function() { return
this.newFetchPersonAppDataRequest(opensocial.newIdSpec({userId:userId.toUpperCase()}),
(key instanceof Array)?key:[key]); }
+ userData : function() { return
this.newFetchPersonAppDataRequest(opensocial.newIdSpec({userId:userId}),
(key instanceof Array)?key:[key]); }
}
_request(obj, function(res) {
if(!res.userData||!res.userData[id]) {

Reply all
Reply to author
Forward
0 new messages