API: getHeadlines: return feed_id for Archived entries as 0 instead of null to be consistent with requested feed_id

This commit is contained in:
Andrew Dolgov 2018-08-29 15:13:07 +03:00
parent a291a0c00f
commit 2ab49fec9a
1 changed files with 1 additions and 1 deletions

View File

@ -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,
);