ソースを参照

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