Преглед изворни кода

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

https://github.com/FreshRSS/FreshRSS/issues/7013#issuecomment-2495281874
Alexandre Alapetite пре 1 година
родитељ
комит
aaa4acf2a3
1 измењених фајлова са 1 додато и 1 уклоњено
  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),