aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Acl.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-04-26 09:05:47 +0200
committerMario Vavti <mario@mariovavti.com>2018-04-26 09:05:47 +0200
commit09666ae8e9d7195c4b839abd9b10ae23ff783558 (patch)
treec8947d413ed3b5258fe8e25b905d2cac98c034e0 /Zotlabs/Module/Acl.php
parent953d02e4b7c8ae7e1ccbecb37751936cd23710e0 (diff)
parentfe724acc3b78af5ed86b4bf0ff58bdd9b56356e2 (diff)
downloadvolse-hubzilla-09666ae8e9d7195c4b839abd9b10ae23ff783558.tar.gz
volse-hubzilla-09666ae8e9d7195c4b839abd9b10ae23ff783558.tar.bz2
volse-hubzilla-09666ae8e9d7195c4b839abd9b10ae23ff783558.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Module/Acl.php')
-rw-r--r--Zotlabs/Module/Acl.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/Zotlabs/Module/Acl.php b/Zotlabs/Module/Acl.php
index 35594ae9f..92e7d176d 100644
--- a/Zotlabs/Module/Acl.php
+++ b/Zotlabs/Module/Acl.php
@@ -268,15 +268,15 @@ class Acl extends \Zotlabs\Web\Controller {
});
}
}
- if(intval(get_config('system','taganyone')) || intval(get_pconfig(local_channel(),'system','taganyone'))) {
- if((count($r) < 100) && $type == 'c') {
- $r2 = q("SELECT substr(xchan_hash,1,18) as id, xchan_hash as hash, xchan_name as name, xchan_photo_s as micro, xchan_url as url, xchan_addr as nick, 0 as abook_their_perms, 0 as abook_flags, 0 as abook_self
- FROM xchan
- WHERE xchan_deleted = 0 $sql_extra2 order by $order_extra2 xchan_name asc"
- );
- if($r2)
- $r = array_merge($r,$r2);
- }
+ if((count($r) < 100) && $type == 'c') {
+ $r2 = q("SELECT substr(xchan_hash,1,18) as id, xchan_hash as hash, xchan_name as name, xchan_photo_s as micro, xchan_url as url, xchan_addr as nick, 0 as abook_their_perms, 0 as abook_flags, 0 as abook_self
+ FROM xchan
+ WHERE xchan_deleted = 0 and not xchan_network in ('rss','anon','unknown') $sql_extra2 order by $order_extra2 xchan_name asc"
+ );
+ if($r2) {
+ $r = array_merge($r,$r2);
+ $r = unique_multidim_array($r,'hash');
+ }
}
}
elseif($type == 'm') {