summaryrefslogtreecommitdiffstats
path: root/lib/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/ItemController.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/Controller/ItemController.php b/lib/Controller/ItemController.php
index 57ad318d2..b72311416 100644
--- a/lib/Controller/ItemController.php
+++ b/lib/Controller/ItemController.php
@@ -130,9 +130,13 @@ class ItemController extends Controller
// we need to pass the newest feeds to not let the unread count get
// out of sync
if ($offset === 0) {
- $return['newestItemId'] = $this->itemService->newest($this->getUserId())->getId();
- $return['feeds'] = $this->feedService->findAllForUser($this->getUserId());
- $return['starred'] = count($this->itemService->starred($this->getUserId()));
+ $params['newestItemId'] =
+ $this->itemService->getNewestItemId($this->userId);
+ $params['feeds'] = $this->feedService->findAllForUser($this->userId);
+ $params['starred'] =
+ $this->itemService->starredCount($this->userId);
+ $params['shared'] =
+ $this->itemService->sharedCount($this->userId);
}
switch ($type) {
@@ -337,5 +341,5 @@ class ItemController extends Controller
return [];
}
-
+
}