paramater fix
This commit is contained in:
parent
08731f8559
commit
ce7ba50b9d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user