diff --git a/Zotlabs/Module/Dirsearch.php b/Zotlabs/Module/Dirsearch.php index 0445578db..f16e58e62 100644 --- a/Zotlabs/Module/Dirsearch.php +++ b/Zotlabs/Module/Dirsearch.php @@ -248,6 +248,12 @@ class Dirsearch extends Controller { foreach ($r as $rr) { + // We need a better way to do this than one query for every + // AP record. Leaving this for the moment because it produces + // the desired results of not having duplicate entries for + // a channel that has multiple identities across multiple + // networks. + if ($rr['xchan_network'] === 'activitypub') { $z = q("select xchan_hash from xchan where xchan_url = '%s' and xchan_network = 'zot6' limit 1", dbesc($rr['xchan_url']) diff --git a/include/socgraph.php b/include/socgraph.php index 79f50fc39..fe86ddd9e 100644 --- a/include/socgraph.php +++ b/include/socgraph.php @@ -216,7 +216,7 @@ function poco_load($xchan = '', $url = null) { function ap_poco_load($xchan) { - $max = get_config('system','max_imported_follow',1000); + $max = get_config('system','max_imported_follow',200); if($xchan) { $cl = get_xconfig($xchan,'activitypub','collections');