mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2025-01-11 10:22:40 +00:00
Make getCompactHeadlines use a whitelist instead
This commit is contained in:
parent
5c140aedc4
commit
e729cedeca
1 changed files with 9 additions and 4 deletions
|
@ -1222,10 +1222,15 @@ class API extends \JKingWeb\Arsse\REST\AbstractHandler {
|
||||||
|
|
||||||
public function opGetCompactHeadlines(array $data): array {
|
public function opGetCompactHeadlines(array $data): array {
|
||||||
// getCompactHeadlines supports fewer features than getHeadlines
|
// getCompactHeadlines supports fewer features than getHeadlines
|
||||||
$data['is_cat'] = false;
|
$data = [
|
||||||
$data['include_nested'] = false;
|
'feed_id' => $data['feed_id'],
|
||||||
$data['search'] = null;
|
'view_mode' => $data['view_mode'],
|
||||||
$data['order_by'] = null;
|
'since_id' => $data['since_id'],
|
||||||
|
'limit' => $data['limit'],
|
||||||
|
'skip' => $data['skip'],
|
||||||
|
];
|
||||||
|
$data = $this->normalizeInput($data, self::VALID_INPUT, "unix");
|
||||||
|
// fetch the list of IDs
|
||||||
$out = [];
|
$out = [];
|
||||||
foreach ($this->fetchArticles($data, Database::LIST_MINIMAL) as $row) {
|
foreach ($this->fetchArticles($data, Database::LIST_MINIMAL) as $row) {
|
||||||
$out[] = ['id' => $row['id']];
|
$out[] = ['id' => $row['id']];
|
||||||
|
|
Loading…
Reference in a new issue