diff options
author | zotlabs <mike@macgirvin.com> | 2018-03-04 17:36:52 -0800 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-03-05 08:57:47 +0100 |
commit | f02314dfd877ab13852ae169d40dcbcc65344bfb (patch) | |
tree | c6a801093532d662a1e50a83f57497060203524c /Zotlabs/Module/Sitelist.php | |
parent | af46c192bf7c217b7348082cbcacd3ea4659fae3 (diff) | |
download | volse-hubzilla-f02314dfd877ab13852ae169d40dcbcc65344bfb.tar.gz volse-hubzilla-f02314dfd877ab13852ae169d40dcbcc65344bfb.tar.bz2 volse-hubzilla-f02314dfd877ab13852ae169d40dcbcc65344bfb.zip |
fix some issues with friend suggestions on standalone sites with no 'suggestme' volunteers. This wrongly pulled up a site directory suggesting everybody on the site. While a better outcome than finding nobody, this does not fit with our ethical design goals. If there are no friends of friends, we will only suggest those who volunteer to be on the default suggestion list. Also do not attempt to load poco data from dead sites.
Diffstat (limited to 'Zotlabs/Module/Sitelist.php')
-rw-r--r-- | Zotlabs/Module/Sitelist.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Sitelist.php b/Zotlabs/Module/Sitelist.php index e7d4187b7..2ac5ed1b8 100644 --- a/Zotlabs/Module/Sitelist.php +++ b/Zotlabs/Module/Sitelist.php @@ -32,7 +32,7 @@ class Sitelist extends \Zotlabs\Web\Controller { $result = array('success' => false); - $r = q("select count(site_url) as total from site where site_type = %d $sql_extra ", + $r = q("select count(site_url) as total from site where site_type = %d and site_dead = 0 $sql_extra ", intval(SITE_TYPE_ZOT) ); @@ -42,7 +42,7 @@ class Sitelist extends \Zotlabs\Web\Controller { $result['start'] = $start; $result['limit'] = $limit; - $r = q("select * from site where site_type = %d $sql_extra $sql_order $sql_limit", + $r = q("select * from site where site_type = %d and site_dead = 0 $sql_extra $sql_order $sql_limit", intval(SITE_TYPE_ZOT) ); |