summaryrefslogtreecommitdiffstats
path: root/lib/Service
diff options
context:
space:
mode:
authorWENDLING NICOLAS <nicolas.wendling2@etu.unistra.fr>2021-01-26 16:45:53 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commitca2b8c65667df763dda85021c8bbc7cea073b4b3 (patch)
treec215bff0baf84015dfddb2528761f1c210f692b8 /lib/Service
parent5fc486a84f2ebd5d03120766241dcabff03ae5ea (diff)
✨ Add count for unread items
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/ItemService.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Service/ItemService.php b/lib/Service/ItemService.php
index f1f3c968b..946c1ad30 100644
--- a/lib/Service/ItemService.php
+++ b/lib/Service/ItemService.php
@@ -361,4 +361,15 @@ class ItemService extends Service
throw new ServiceNotFoundException($ex->getMessage());
}
}
+
+ /**
+ * Returns the shared count
+ *
+ * @param string $userId the name of the user
+ * @return int the count
+ */
+ public function starredShared($userId)
+ {
+ return $this->itemMapper->sharedCount($userId);
+ }
}