diff options
author | zotlabs <mike@macgirvin.com> | 2018-01-17 20:10:49 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-01-17 20:10:49 -0800 |
commit | f1afb0ddfec8ed90332e5f6b2f0c74e338727094 (patch) | |
tree | a9d4d3c607ef95ad58494edbf6483ea45caf3793 /Zotlabs/Module/Dirsearch.php | |
parent | 561372e203ccb36dfa94d1629d918d42648dff71 (diff) | |
download | volse-hubzilla-f1afb0ddfec8ed90332e5f6b2f0c74e338727094.tar.gz volse-hubzilla-f1afb0ddfec8ed90332e5f6b2f0c74e338727094.tar.bz2 volse-hubzilla-f1afb0ddfec8ed90332e5f6b2f0c74e338727094.zip |
simplify dir_tagadelic dramatically
Diffstat (limited to 'Zotlabs/Module/Dirsearch.php')
-rw-r--r-- | Zotlabs/Module/Dirsearch.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Module/Dirsearch.php b/Zotlabs/Module/Dirsearch.php index 53ec1a850..08f1f7a13 100644 --- a/Zotlabs/Module/Dirsearch.php +++ b/Zotlabs/Module/Dirsearch.php @@ -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 |