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