Skip to content

A free, self-hostable news aggregator…

API return all categories also without any feed (#7020)

Alexandre Alapetiteaaa4acf2a33d
diff --git a/p/api/greader.php b/p/api/greader.php
index 4f288bb03..8833693c3 100644
--- a/p/api/greader.php
+++ b/p/api/greader.php
@@ -282,7 +282,7 @@ final class GReaderAPI {
// ['id' => 'user/-/state/com.google/broadcast', 'sortid' => '2']
];
$categoryDAO = FreshRSS_Factory::createCategoryDao();
- $categories = $categoryDAO->listCategories(true, false) ?: [];
+ $categories = $categoryDAO->listCategories(prePopulateFeeds: false, details: false) ?: [];
foreach ($categories as $cat) {
$tags[] = [
'id' => 'user/-/label/' . htmlspecialchars_decode($cat->name(), ENT_QUOTES),