aboutsummaryrefslogtreecommitdiffstats
path: root/include/socgraph.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-15 13:52:52 -0800
committerfriendica <info@friendica.com>2011-12-15 13:52:52 -0800
commit193435e9803b29555772f19e45283eb411f91f8b (patch)
treebb54dd1a38bd486f1b4cc6a39348bb9899758280 /include/socgraph.php
parentcc5fd0a136894702437fc5add133c784e8545b0b (diff)
downloadvolse-hubzilla-193435e9803b29555772f19e45283eb411f91f8b.tar.gz
volse-hubzilla-193435e9803b29555772f19e45283eb411f91f8b.tar.bz2
volse-hubzilla-193435e9803b29555772f19e45283eb411f91f8b.zip
default suggestions not being collected properly
Diffstat (limited to 'include/socgraph.php')
-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;