aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <redmatrix@redmatrix.me>2015-04-07 18:13:10 -0700
committerfriendica <redmatrix@redmatrix.me>2015-04-07 18:13:10 -0700
commitdc2830755dfe14d121e740edaccfc13bade2426a (patch)
treee1aaf7273f965d52d8be813fd266d9c881b7db19
parentd78118e2b0eee173f50c57f14ae8733e8412c502 (diff)
downloadvolse-hubzilla-dc2830755dfe14d121e740edaccfc13bade2426a.tar.gz
volse-hubzilla-dc2830755dfe14d121e740edaccfc13bade2426a.tar.bz2
volse-hubzilla-dc2830755dfe14d121e740edaccfc13bade2426a.zip
add common connection count to suggestions
-rw-r--r--mod/directory.php2
-rw-r--r--mod/suggest.php1
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'],