aboutsummaryrefslogtreecommitdiff
path: root/p/api/greader.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-11-29 12:32:44 +0100
committerGravatar GitHub <noreply@github.com> 2024-11-29 12:32:44 +0100
commitaaa4acf2a33da276039e6342ae34abead143fd8e (patch)
tree8e67882de018367bf55f8344cccb14c415e8bd13 /p/api/greader.php
parent35bf292635e33ddd055c545fc7b87d6635269608 (diff)
API return all categories also without any feed (#7020)
https://github.com/FreshRSS/FreshRSS/issues/7013#issuecomment-2495281874
Diffstat (limited to 'p/api/greader.php')
-rw-r--r--p/api/greader.php2
1 files changed, 1 insertions, 1 deletions
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),