From bf92ace3e858ae209b75d3c75810d80361be33a0 Mon Sep 17 00:00:00 2001 From: Marco Nassabain Date: Fri, 29 Jan 2021 22:23:57 +0100 Subject: =?UTF-8?q?=F0=9F=90=9B=20Added=20sharedCount=20to=20feedControlle?= =?UTF-8?q?r=20index=20resp.=20-=20After=20reloading=20news=20app,=20the?= =?UTF-8?q?=20shared=20menu=20count=20wouldn't=20update=20-=20The=20number?= =?UTF-8?q?=20would=20only=20update=20on=20click=20(call=20ItemController?= =?UTF-8?q?=20index)=20-=20Adding=20it=20here=20fixes=20the=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marco Nassabain --- lib/Controller/FeedController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Controller') 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 { -- cgit v1.2.3