diff options
| author | 2022-05-12 22:31:31 +0200 | |
|---|---|---|
| committer | 2022-05-12 22:31:31 +0200 | |
| commit | da0a333b941efecd0dcfe04346ce0241b42345cf (patch) | |
| tree | b7a4b135adad34c0f8762ff79c42c97d57424f7e /app/Services/ExportService.php | |
| parent | 4a87206f2898665e99953590536cedc6c5505f05 (diff) | |
Refactor OPML export categories (#4356)
* Refactor OPML export categories
Simplify code to comply with types hints.
And renamed a property to plural.
* Link to OPML namespace
Diffstat (limited to 'app/Services/ExportService.php')
| -rw-r--r-- | app/Services/ExportService.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/Services/ExportService.php b/app/Services/ExportService.php index a80f20ce4..25e217968 100644 --- a/app/Services/ExportService.php +++ b/app/Services/ExportService.php @@ -47,14 +47,7 @@ class FreshRSS_Export_Service { $view = new FreshRSS_View(); $day = date('Y-m-d'); - $categories = []; - - foreach ($this->category_dao->listCategories() as $key => $category) { - $categories[$key]['name'] = $category->name(); - $categories[$key]['feeds'] = $this->feed_dao->listByCategory($category->id()); - } - - $view->categories = $categories; + $view->categories = $this->category_dao->listCategories(true); return [ "feeds_{$day}.opml.xml", |
