diff options
author | zotlabs <mike@macgirvin.com> | 2019-04-30 23:38:48 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2019-04-30 23:38:48 -0700 |
commit | 9a55df245f4829900a3265fbb1cac56779e2b06e (patch) | |
tree | 9202853a9f5732913833fee895d59aa1a5c60a9a /Zotlabs/Module/Directory.php | |
parent | 9800d95c50d457440969e5419cb4a7742c57eedd (diff) | |
download | volse-hubzilla-9a55df245f4829900a3265fbb1cac56779e2b06e.tar.gz volse-hubzilla-9a55df245f4829900a3265fbb1cac56779e2b06e.tar.bz2 volse-hubzilla-9a55df245f4829900a3265fbb1cac56779e2b06e.zip |
disable directory options when using suggestion mode and only return one page (60 items)
so that sorting works correctly
Diffstat (limited to 'Zotlabs/Module/Directory.php')
-rw-r--r-- | Zotlabs/Module/Directory.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php index f26040629..8f5db6635 100644 --- a/Zotlabs/Module/Directory.php +++ b/Zotlabs/Module/Directory.php @@ -103,8 +103,14 @@ class Directory extends \Zotlabs\Web\Controller { $suggest = (local_channel() && x($_REQUEST,'suggest')) ? $_REQUEST['suggest'] : ''; if($suggest) { - - $r = suggestion_query(local_channel(),get_observer_hash()); + + // the directory options have no effect in suggestion mode + + $globaldir = 1; + $safe_mode = 1; + $type = 0; + + $r = suggestion_query(local_channel(),get_observer_hash(),0,60); if(! $r) { notice( t('No default suggestions were found.') . EOL); |