disable directory options when using suggestion mode and only return one page (60 items)

so that sorting works correctly
This commit is contained in:
zotlabs 2019-04-30 23:38:48 -07:00
parent 9800d95c50
commit 9a55df245f

View File

@ -104,7 +104,13 @@ class Directory extends \Zotlabs\Web\Controller {
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);