summaryrefslogtreecommitdiffstats
path: root/lib/Controller/FeedController.php
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-02-24 23:23:29 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit0f6ec7c99ca43da46766ca6126ae20d280e9b662 (patch)
tree6335999fb503cbebe5d5670801ae79b12a4aad6f /lib/Controller/FeedController.php
parent7e1a0b47cf369f33eedfbd628dea40fd8589a97b (diff)
✨ Implementer shared getter + add count in request
- ItemServiceV2: added sharedWithUser - returns unread shared items - ItemController & FeedController - returning shared count Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Controller/FeedController.php')
-rw-r--r--lib/Controller/FeedController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/FeedController.php b/lib/Controller/FeedController.php
index 86a1f5e57..02fbbc625 100644
--- a/lib/Controller/FeedController.php
+++ b/lib/Controller/FeedController.php
@@ -82,7 +82,7 @@ class FeedController extends Controller
$params = [
'feeds' => $this->feedService->findAllForUser($this->getUserId()),
'starred' => count($this->itemService->starred($this->getUserId())),
- // 'shared' => count($this->itemService->shared($this->getUserId())) // TODO: uncomment when implemented
+ 'shared' => count($this->itemService->sharedWithUser($this->getUserId()))
];
try {