aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Directory.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-06 21:55:58 -0800
committerzotlabs <mike@macgirvin.com>2017-11-06 21:55:58 -0800
commit5e47b767ea6ed92f6f7ea0a3368762827937a5d8 (patch)
tree7e115ff8ec962cd52f64b60c5cebb2520d776ace /Zotlabs/Module/Directory.php
parent7ef641e256aba64978ea9a41a31b78e4af5c68b0 (diff)
parentd16bbfb224c218b04676d890c647b6d1c5d92273 (diff)
downloadvolse-hubzilla-5e47b767ea6ed92f6f7ea0a3368762827937a5d8.tar.gz
volse-hubzilla-5e47b767ea6ed92f6f7ea0a3368762827937a5d8.tar.bz2
volse-hubzilla-5e47b767ea6ed92f6f7ea0a3368762827937a5d8.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
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
);