From aaa4acf2a33da276039e6342ae34abead143fd8e Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 29 Nov 2024 12:32:44 +0100 Subject: API return all categories also without any feed (#7020) https://github.com/FreshRSS/FreshRSS/issues/7013#issuecomment-2495281874 --- p/api/greader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p/api') 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), -- cgit v1.2.3