aboutsummaryrefslogtreecommitdiff
path: root/app/Services/ExportService.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Services/ExportService.php')
-rw-r--r--app/Services/ExportService.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Services/ExportService.php b/app/Services/ExportService.php
index e9acda614..69f0b3d2b 100644
--- a/app/Services/ExportService.php
+++ b/app/Services/ExportService.php
@@ -40,7 +40,7 @@ class FreshRSS_Export_Service {
public function generateOpml(): array {
$view = new FreshRSS_View();
$day = date('Y-m-d');
- $view->categories = $this->category_dao->listCategories(true, true) ?: [];
+ $view->categories = $this->category_dao->listCategories(prePopulateFeeds: true, details: true);
$view->excludeMutedFeeds = false;
return [
@@ -64,7 +64,7 @@ class FreshRSS_Export_Service {
*/
public function generateStarredEntries(string $type): array {
$view = new FreshRSS_View();
- $view->categories = $this->category_dao->listCategories(true) ?: [];
+ $view->categories = $this->category_dao->listCategories(prePopulateFeeds: true);
$day = date('Y-m-d');
$view->list_title = _t('sub.import_export.starred_list');
@@ -89,7 +89,7 @@ class FreshRSS_Export_Service {
*/
public function generateFeedEntries(int $feed_id, int $max_number_entries): ?array {
$view = new FreshRSS_View();
- $view->categories = $this->category_dao->listCategories(true) ?: [];
+ $view->categories = $this->category_dao->listCategories(prePopulateFeeds: true);
$feed = FreshRSS_Category::findFeed($view->categories, $feed_id);
if ($feed === null) {