Browse Source

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

Andrew Dolgov 2 years ago
parent
commit
2ab49fec9a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/api.php

+ 1 - 1
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,
 					);