From: Andrew Dolgov Date: Wed, 29 Aug 2018 12:13:07 +0000 (+0300) Subject: API: getHeadlines: return feed_id for Archived entries as 0 instead of null to be... X-Git-Tag: 18.12~82 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2ab49fec9a01d263b2334b20135847552b7d84ed;p=tt-rss.git API: getHeadlines: return feed_id for Archived entries as 0 instead of null to be consistent with requested feed_id --- 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, );