aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Directory.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-05 16:29:01 -0800
committerzotlabs <mike@macgirvin.com>2017-11-05 16:29:01 -0800
commit359bfb76f66efd585b0cba1b2f81494859931d61 (patch)
tree03c9001298af65cd3f0718b2ba9e9d7eb1e829e1 /Zotlabs/Module/Directory.php
parent0e1c628066a48ceb38a56a3b26e1a69e49bd218e (diff)
downloadvolse-hubzilla-359bfb76f66efd585b0cba1b2f81494859931d61.tar.gz
volse-hubzilla-359bfb76f66efd585b0cba1b2f81494859931d61.tar.bz2
volse-hubzilla-359bfb76f66efd585b0cba1b2f81494859931d61.zip
common connections on suggestion page showing wildly different results than remote profile, and is consistently off by one
Diffstat (limited to 'Zotlabs/Module/Directory.php')
-rw-r--r--Zotlabs/Module/Directory.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index caf0190ae..256667ef3 100644
--- a/Zotlabs/Module/Directory.php
+++ b/Zotlabs/Module/Directory.php
@@ -102,7 +102,7 @@ class Directory extends \Zotlabs\Web\Controller {
$common = array();
$index = 0;
foreach($r as $rr) {
- $common[$rr['xchan_addr']] = $rr['total'];
+ $common[$rr['xchan_addr']] = ((intval($rr['total']) > 0) ? intval($rr['total']) - 1 : 0);
$addresses[$rr['xchan_addr']] = $index++;
}
@@ -334,7 +334,7 @@ class Directory extends \Zotlabs\Web\Controller {
'ignlink' => $suggest ? z_root() . '/directory?ignore=' . $rr['hash'] : '',
'ignore_label' => t('Don\'t suggest'),
'common_friends' => (($common[$rr['address']]) ? intval($common[$rr['address']]) : ''),
- 'common_label' => t('Common connections:'),
+ 'common_label' => t('Common connections (estimated):'),
'common_count' => intval($common[$rr['address']]),
'safe' => $safe_mode
);