aboutsummaryrefslogtreecommitdiff
path: root/app/Services
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-12-28 23:58:00 +0100
committerGravatar GitHub <noreply@github.com> 2024-12-28 23:58:00 +0100
commitc29cbb7b8be95fee249ed1a21dce98a4772d92e2 (patch)
treeb116f6033ea081c6cc5f82ce83156f2a7021166c /app/Services
parent33cdfbb309c61167cf1c81273eb242f94ca8f996 (diff)
Fix regressions on some array structures (#7155)
regressions from https://github.com/FreshRSS/FreshRSS/pull/7131 fix https://github.com/FreshRSS/FreshRSS/issues/7154
Diffstat (limited to 'app/Services')
-rw-r--r--app/Services/ImportService.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php
index b1cd7855a..142a0ce09 100644
--- a/app/Services/ImportService.php
+++ b/app/Services/ImportService.php
@@ -149,7 +149,7 @@ class FreshRSS_Import_Service {
try {
// Create a Feed object and add it in DB
$feed = new FreshRSS_Feed($url);
- $category->addFeed($feed);
+ $feed->_category($category);
$feed->_name($name);
$feed->_website($website);
$feed->_description($description);
@@ -319,6 +319,7 @@ class FreshRSS_Import_Service {
$this->lastStatus = false;
} else {
$feed->_id($id);
+ $category->addFeed($feed);
return $feed;
}
}