mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-21 05:41:33 +00:00
api: limit getHeadlines output to 60 headlines
This commit is contained in:
@@ -160,6 +160,9 @@ class API extends Handler {
|
|||||||
if ($feed_id != "") {
|
if ($feed_id != "") {
|
||||||
|
|
||||||
$limit = (int)db_escape_string($_REQUEST["limit"]);
|
$limit = (int)db_escape_string($_REQUEST["limit"]);
|
||||||
|
|
||||||
|
if (!$limit || $limit >= 60) $limit = 60;
|
||||||
|
|
||||||
$offset = (int)db_escape_string($_REQUEST["skip"]);
|
$offset = (int)db_escape_string($_REQUEST["skip"]);
|
||||||
$filter = db_escape_string($_REQUEST["filter"]);
|
$filter = db_escape_string($_REQUEST["filter"]);
|
||||||
$is_cat = (bool)db_escape_string($_REQUEST["is_cat"]);
|
$is_cat = (bool)db_escape_string($_REQUEST["is_cat"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user