From dc2830755dfe14d121e740edaccfc13bade2426a Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 7 Apr 2015 18:13:10 -0700 Subject: add common connection count to suggestions --- mod/directory.php | 2 +- mod/suggest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'mod') 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'], -- cgit v1.2.3