summaryrefslogtreecommitdiffstats
path: root/lib/Controller
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-01-29 22:23:57 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commitbf92ace3e858ae209b75d3c75810d80361be33a0 (patch)
treeae0f0bfb79ed7e5b64eb842b3b8c6351ef43203b /lib/Controller
parentb27226d4ae011a130f07433683606e139424a201 (diff)
🐛 Added sharedCount to feedController index resp.
- After reloading news app, the shared menu count wouldn't update - The number would only update on click (call ItemController index) - Adding it here fixes the issue Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/FeedController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/FeedController.php b/lib/Controller/FeedController.php
index f071ade0f..86a1f5e57 100644
--- a/lib/Controller/FeedController.php
+++ b/lib/Controller/FeedController.php
@@ -81,7 +81,8 @@ class FeedController extends Controller
// item id which will be used for marking feeds read
$params = [
'feeds' => $this->feedService->findAllForUser($this->getUserId()),
- 'starred' => count($this->itemService->starred($this->getUserId()))
+ 'starred' => count($this->itemService->starred($this->getUserId())),
+ // 'shared' => count($this->itemService->shared($this->getUserId())) // TODO: uncomment when implemented
];
try {