From 28fb571dca83f7785695061126aebf49bd58678e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 29 Nov 2021 10:20:13 +0300 Subject: * fix showing headlines for tag-based virtual feeds * API: allow retrieving headlines for tag-based feeds (bump api level to 18) --- classes/api.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'classes/api.php') diff --git a/classes/api.php b/classes/api.php index 1cef9c482..539aa334b 100755 --- a/classes/api.php +++ b/classes/api.php @@ -1,7 +1,7 @@ = 200) $limit = 200; @@ -632,9 +630,10 @@ class API extends Handler { } /** + * @param string|int $feed_id * @return array{0: array>, 1: array} $headlines, $headlines_header */ - private static function _api_get_headlines(int $feed_id, int $limit, int $offset, + private static function _api_get_headlines(mixed $feed_id, int $limit, int $offset, string $filter, bool $is_cat, bool $show_excerpt, bool $show_content, ?string $view_mode, string $order, bool $include_attachments, int $since_id, string $search = "", bool $include_nested = false, bool $sanitize_content = true, bool $force_update = false, int $excerpt_length = 100, ?int $check_first_id = null, -- cgit v1.2.3