Sfoglia il codice sorgente

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

https://github.com/FreshRSS/FreshRSS/issues/7013#issuecomment-2495281874
Alexandre Alapetite 1 anno fa
parent
commit
aaa4acf2a3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      p/api/greader.php

+ 1 - 1
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),