summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2021-01-18 19:56:26 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-01-18 20:15:13 +0100
commit582c4d11facc0c8c97ae14d370b6c4f69b210124 (patch)
tree6fea68f1918e2f05ca140e716cf18b3d7d8993c2 /lib
parent8e0a8fc1d2d0f92ea7f02795eb144f3a8a977d80 (diff)
Controllers: Fetch feed after creating
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/FeedApiController.php2
-rw-r--r--lib/Controller/FeedController.php2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/Controller/FeedApiController.php b/lib/Controller/FeedApiController.php
index 629f2c482..29f79b3ec 100644
--- a/lib/Controller/FeedApiController.php
+++ b/lib/Controller/FeedApiController.php
@@ -111,6 +111,8 @@ class FeedApiController extends ApiController
$feed = $this->feedService->create($this->getUserId(), $url, $folderId);
$result = ['feeds' => $this->serialize($feed)];
+ $this->feedService->fetch($feed);
+
try {
$result['newestItemId'] = $this->oldItemService->getNewestItemId($this->getUserId());
} catch (ServiceNotFoundException $ex) {
diff --git a/lib/Controller/FeedController.php b/lib/Controller/FeedController.php
index ba39fdf7a..9f7c9b0d6 100644
--- a/lib/Controller/FeedController.php
+++ b/lib/Controller/FeedController.php
@@ -180,6 +180,8 @@ class FeedController extends Controller
);
$params = ['feeds' => [$feed]];
+ $this->feedService->fetch($feed);
+
try {
$id = $this->itemService->getNewestItemId($this->getUserId());
// An exception occurs if there is a newest item. If there is none,