aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Directory.php2
-rw-r--r--Zotlabs/Module/Dirsearch.php10
2 files changed, 8 insertions, 4 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index 88e2dd59b..05aa735c8 100644
--- a/Zotlabs/Module/Directory.php
+++ b/Zotlabs/Module/Directory.php
@@ -118,7 +118,7 @@ class Directory extends Controller {
$safe_mode = 1;
$type = 0;
- $r = suggestion_query(local_channel(),get_observer_hash(),0,60);
+ $r = suggestion_query(local_channel(), get_observer_hash(), 0, 30);
if(! $r) {
notice( t('No default suggestions were found.') . EOL);
diff --git a/Zotlabs/Module/Dirsearch.php b/Zotlabs/Module/Dirsearch.php
index a90c2104a..d27b195e4 100644
--- a/Zotlabs/Module/Dirsearch.php
+++ b/Zotlabs/Module/Dirsearch.php
@@ -154,9 +154,13 @@ class Dirsearch extends Controller {
}
- $perpage = $_REQUEST['n'] ?? 60;
- $page = ((isset($_REQUEST['p']) && $_REQUEST['p']) ? intval($_REQUEST['p'] - 1) : 0);
- $startrec = (($page+1) * $perpage) - $perpage;
+ $perpage = $_REQUEST['n'] ?? 30;
+ if ($perpage > 30) {
+ $perpage = 30;
+ }
+
+ $page = ((isset($_REQUEST['p']) && $_REQUEST['p']) ? intval($_REQUEST['p'] - 1) : 0);
+ $startrec = (($page+1) * $perpage) - $perpage;
$limit = $_REQUEST['limit'] ?? 0;
$return_total = $_REQUEST['return_total'] ?? 0;