add common connection count to suggestions

This commit is contained in:
friendica 2015-04-07 18:13:10 -07:00
parent d78118e2b0
commit dc2830755d
2 changed files with 2 additions and 1 deletions

View File

@ -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++;
}

View File

@ -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'],