diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-01-29 22:23:57 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | bf92ace3e858ae209b75d3c75810d80361be33a0 (patch) | |
tree | ae0f0bfb79ed7e5b64eb842b3b8c6351ef43203b /lib/Controller | |
parent | b27226d4ae011a130f07433683606e139424a201 (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.php | 3 |
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 { |