A free, self-hostable news aggregator…
Fix API bug with EasyRSS (#1800)
Alexandre Alapetitecb1c788c8a1c
diff --git a/p/api/greader.php b/p/api/greader.phpindex b1546192e..9778aecf5 100644--- a/p/api/greader.php+++ b/p/api/greader.php@@ -445,6 +445,9 @@ function unreadCount() { //http://blog.martindoms.com/2009/10/16/using-the-googl}function entriesToArray($entries) {+ $feedDAO = FreshRSS_Factory::createFeedDao();+ $arrayFeedCategoryNames = $feedDAO->arrayFeedCategoryNames();+$items = array();foreach ($entries as $entry) {$f_id = $entry->feed();@@ -494,9 +497,6 @@ function streamContents($path, $include_target, $start_time, $count, $order, $ex//http://blog.martindoms.com/2009/10/16/using-the-google-reader-api-part-2/#feedheader('Content-Type: application/json; charset=UTF-8');- $feedDAO = FreshRSS_Factory::createFeedDao();- $arrayFeedCategoryNames = $feedDAO->arrayFeedCategoryNames();-switch ($path) {case 'reading-list':$type = 'A';