]> git.mxchange.org Git - friendica.git/commitdiff
Min is max
authorMichael <heluecht@pirati.ca>
Tue, 18 May 2021 07:02:50 +0000 (07:02 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 18 May 2021 07:02:50 +0000 (07:02 +0000)
src/Module/Api/Mastodon/Search.php

index bad84b2b93a4df00f7945bfa29d6227dd98b84af..76c8ae008a0e8e5eac2e90888c8e4c2010e47484 100644 (file)
@@ -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.