From ce7ba50b9d3fa00cf5d122bc079f393f812bb1dc Mon Sep 17 00:00:00 2001 From: Kilian Hofmann Date: Sat, 27 Jul 2024 16:46:17 +0200 Subject: [PATCH] paramater fix --- exam/api/Posts/Posts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exam/api/Posts/Posts.php b/exam/api/Posts/Posts.php index a58b8fb..9be186b 100644 --- a/exam/api/Posts/Posts.php +++ b/exam/api/Posts/Posts.php @@ -30,7 +30,7 @@ class Posts extends Api // Throw 400 error if a required one is missing. $content = Input::post("content"); // This one is optional - $limit = constrain(0, 30, intval(Input::post("l", 10))); + $limit = constrain(0, 30, intval(Input::post("limit", 10))); if (empty($content)) throw ApiError::missingField(["content"]); // Get logged in user