From cb1c788c8a1cce8b94398b0c61780bf86c66773f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 28 Feb 2018 09:29:09 +0100 Subject: Fix API bug with EasyRSS (#1800) Regression in FreshRSS 1.10.0 https://github.com/FreshRSS/FreshRSS/issues/1799 --- p/api/greader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'p') diff --git a/p/api/greader.php b/p/api/greader.php index 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/#feed header('Content-Type: application/json; charset=UTF-8'); - $feedDAO = FreshRSS_Factory::createFeedDao(); - $arrayFeedCategoryNames = $feedDAO->arrayFeedCategoryNames(); - switch ($path) { case 'reading-list': $type = 'A'; -- cgit v1.2.3