From 8ae29eabe81d63ff98aefb6e9bbd0a102734820c Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 18 May 2021 07:02:50 +0000 Subject: [PATCH] Min is max --- src/Module/Api/Mastodon/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Api/Mastodon/Search.php b/src/Module/Api/Mastodon/Search.php index bad84b2b9..76c8ae008 100644 --- a/src/Module/Api/Mastodon/Search.php +++ b/src/Module/Api/Mastodon/Search.php @@ -65,7 +65,7 @@ class Search extends BaseApi // Attempt WebFinger lookup. Defaults to false. $resolve = $request['resolve']; // Maximum number of results to load, per type. Defaults to 20. Max 40. - $limit = max($request['limit'], 40); + $limit = min($request['limit'], 40); // Offset in search results. Used for pagination. Defaults to 0. $offset = $request['offset']; // Only who the user is following. Defaults to false.