paramater fix

This commit is contained in:
Kilian Hofmann 2024-07-27 16:46:17 +02:00
parent 08731f8559
commit ce7ba50b9d

View File

@ -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