@ -42,6 +42,12 @@ class API extends \JKingWeb\Arsse\REST\AbstractHandler {
'with_ids' => V::T_STRING,
'with_ids' => V::T_STRING,
'group_ids' => V::T_STRING, // undocumented parameter for 'items' lookup
'group_ids' => V::T_STRING, // undocumented parameter for 'items' lookup
'feed_ids' => V::T_STRING, // undocumented parameter for 'items' lookup
'feed_ids' => V::T_STRING, // undocumented parameter for 'items' lookup
// these should be POST parameters only, but some clients misbehave
'mark' => V::T_STRING,
'as' => V::T_STRING,
'id' => V::T_INT,
'before' => V::T_DATE,
'unread_recently_read' => V::T_BOOL,
];
];
// POST parameters, all of which contain meaningful values
// POST parameters, all of which contain meaningful values
const PARAM_POST = [
const PARAM_POST = [
@ -134,6 +140,9 @@ class API extends \JKingWeb\Arsse\REST\AbstractHandler {
// either an 'unread_item_ids' or a
// either an 'unread_item_ids' or a
// 'saved_item_ids' entry will be added later
// 'saved_item_ids' entry will be added later
$listSaved = $this->setMarks($P, $listUnread);
$listSaved = $this->setMarks($P, $listUnread);
} elseif ($G['mark'] & & $G['as'] & & is_int($G['id'])) {
// some clients send GET rather than POST parameters for marking
$listSaved = $this->setMarks($G, $listUnread);
}
}
if ($G['feeds'] || $G['groups']) {
if ($G['feeds'] || $G['groups']) {
if ($G['groups']) {
if ($G['groups']) {