diff options
Diffstat (limited to 'include/socgraph.php')
-rw-r--r-- | include/socgraph.php | 3 |
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; |