summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-29 10:20:13 +0300
committerAndrew Dolgov <[email protected]>2021-11-29 10:20:13 +0300
commit28fb571dca83f7785695061126aebf49bd58678e (patch)
tree496135561928e6080d06643bd0e7af233eef03cc /classes/feeds.php
parent831648e3c84ce50645f496e4628ed2a72bdccf10 (diff)
* fix showing headlines for tag-based virtual feeds
* API: allow retrieving headlines for tag-based feeds (bump api level to 18)
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-xclasses/feeds.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 6f9cca8b2..af2ee1a8c 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -18,9 +18,10 @@ class Feeds extends Handler_Protected {
}
/**
+ * @param string|int $feed
* @return array{0: array<int, int>, 1: int, 2: int, 3: bool, 4: array<string, mixed>} $topmost_article_ids, $headlines_count, $feed, $disable_cache, $reply
*/
- private function _format_headlines_list(int $feed, string $method, string $view_mode, int $limit, bool $cat_view,
+ private function _format_headlines_list(mixed $feed, string $method, string $view_mode, int $limit, bool $cat_view,
int $offset, string $override_order, bool $include_children, ?int $check_first_id = null,
bool $skip_first_id_check, string $order_by): array {
@@ -1213,7 +1214,10 @@ class Feeds extends Handler_Protected {
}
}
- static function _get_title(int $id, bool $cat = false): string {
+ /**
+ * @param string|int $id
+ */
+ static function _get_title(mixed $id, bool $cat = false): string {
$pdo = Db::pdo();
if ($cat) {