]> git.wh0rd.org - tt-rss.git/commitdiff
API: getHeadlines: return feed_id for Archived entries as 0 instead of null to be...
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 29 Aug 2018 12:13:07 +0000 (15:13 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 29 Aug 2018 12:13:07 +0000 (15:13 +0300)
classes/api.php

index 58fccdfeafca3125a86a61c2e61f6bbbde5afa21..e505dcc915dd90f5d09feaab07d62da51970091b 100755 (executable)
@@ -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,
                                        );