aboutsummaryrefslogtreecommitdiff
path: root/app/Services/ImportService.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Services/ImportService.php')
-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;
}
}