mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-27 21:31:28 +00:00
digest: add rate limit for headline requests when catching up; control OOE responses with seq numbers
This commit is contained in:
@@ -1003,11 +1003,14 @@
|
||||
if ($subop == "digest-update") {
|
||||
$feed_id = db_escape_string($_REQUEST['feed_id']);
|
||||
$offset = db_escape_string($_REQUEST['offset']);
|
||||
$seq = db_escape_string($_REQUEST['seq']);
|
||||
|
||||
if (!$feed_id) $feed_id = -4;
|
||||
if (!$offset) $offset = 0;
|
||||
print "<rpc-reply>";
|
||||
|
||||
print "<seq>$seq</seq>";
|
||||
|
||||
$headlines = api_get_headlines($link, $feed_id, 10, $offset,
|
||||
'', ($feed_id == -4), true, false, "unread", "updated DESC");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user