aboutsummaryrefslogtreecommitdiff
path: root/p/api/greader.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-02-28 09:29:09 +0100
committerGravatar GitHub <noreply@github.com> 2018-02-28 09:29:09 +0100
commitcb1c788c8a1cce8b94398b0c61780bf86c66773f (patch)
treeffa918ecb7905ba5bd3aeada2d05fef0e6dc0296 /p/api/greader.php
parentcd5bfcd7918cb4fa933b0d8ba0af52fe6e54f45d (diff)
Fix API bug with EasyRSS (#1800)
Regression in FreshRSS 1.10.0 https://github.com/FreshRSS/FreshRSS/issues/1799
Diffstat (limited to 'p/api/greader.php')
-rw-r--r--p/api/greader.php6
1 files changed, 3 insertions, 3 deletions
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';