diff options
author | friendica <redmatrix@redmatrix.me> | 2015-04-07 18:13:10 -0700 |
---|---|---|
committer | friendica <redmatrix@redmatrix.me> | 2015-04-07 18:13:10 -0700 |
commit | dc2830755dfe14d121e740edaccfc13bade2426a (patch) | |
tree | e1aaf7273f965d52d8be813fd266d9c881b7db19 | |
parent | d78118e2b0eee173f50c57f14ae8733e8412c502 (diff) | |
download | volse-hubzilla-dc2830755dfe14d121e740edaccfc13bade2426a.tar.gz volse-hubzilla-dc2830755dfe14d121e740edaccfc13bade2426a.tar.bz2 volse-hubzilla-dc2830755dfe14d121e740edaccfc13bade2426a.zip |
add common connection count to suggestions
-rw-r--r-- | mod/directory.php | 2 | ||||
-rw-r--r-- | mod/suggest.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/mod/directory.php b/mod/directory.php index 2a4672039..38dd9687a 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -90,7 +90,7 @@ function directory_content(&$a) { $common = array(); $index = 0; foreach($r as $rr) { -// $common[$rr['xchan_addr']] = $rr['total']; + $common[$rr['xchan_addr']] = $rr['total']; $addresses[$rr['xchan_addr']] = $index++; } diff --git a/mod/suggest.php b/mod/suggest.php index fec0e85a4..438d884ca 100644 --- a/mod/suggest.php +++ b/mod/suggest.php @@ -44,6 +44,7 @@ function suggest_content(&$a) { $arr[] = array( 'url' => chanlink_url($rr['xchan_url']), + 'common' => $rr['total'], 'profile' => $rr['xchan_url'], 'name' => $rr['xchan_name'], 'photo' => $rr['xchan_photo_m'], |