From 2ab49fec9a01d263b2334b20135847552b7d84ed Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 29 Aug 2018 15:13:07 +0300 Subject: [PATCH] API: getHeadlines: return feed_id for Archived entries as 0 instead of null to be consistent with requested feed_id --- classes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/api.php b/classes/api.php index 58fccdfe..e505dcc9 100755 --- a/classes/api.php +++ b/classes/api.php @@ -755,7 +755,7 @@ class API extends Handler { "is_updated" => $is_updated, "title" => $line["title"], "link" => $line["link"], - "feed_id" => $line["feed_id"], + "feed_id" => $line["feed_id"] ? $line['feed_id'] : 0, "tags" => $tags, ); -- 2.39.5