aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/socgraph.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/socgraph.php b/include/socgraph.php
index 07dafe7f8..ffd3fd5df 100644
--- a/include/socgraph.php
+++ b/include/socgraph.php
@@ -42,7 +42,8 @@ function poco_load($cid,$uid = 0,$url = null) {
logger('poco_load: ' . $url, LOGGER_DATA);
- $s = fetch_url($url . '/@me/@all?fields=displayName,urls,photos');
+
+ $s = fetch_url($url . ($uid) ? '/@me/@all?fields=displayName,urls,photos' : '?fields=displayName,urls,photos' );
if(($a->get_curl_code() > 299) || (! $s))
return;