simplify dir_tagadelic dramatically

This commit is contained in:
zotlabs
2018-01-17 20:10:49 -08:00
parent 561372e203
commit f1afb0ddfe
2 changed files with 8 additions and 19 deletions

View File

@@ -97,7 +97,10 @@ class Dirsearch extends \Zotlabs\Web\Controller {
else
$sync = false;
if(($dirmode == DIRECTORY_MODE_STANDALONE) && (! $hub)) {
$hub = \App::get_hostname();
}
if($hub)
$hub_query = " and xchan_hash in (select hubloc_hash from hubloc where hubloc_host = '" . protect_sprintf(dbesc($hub)) . "') ";
else