diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-30 12:10:59 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-11-04 11:01:21 +0100 |
commit | ede75108548febed0e9fb0b56595529927866721 (patch) | |
tree | c6b6074a72175b3096ea13dcf5d438396206bcca /lib/public | |
parent | 8eb0db5078944f8d0bea8b641f69437acf59e9ab (diff) | |
download | nextcloud-server-ede75108548febed0e9fb0b56595529927866721.tar.gz nextcloud-server-ede75108548febed0e9fb0b56595529927866721.zip |
Add a function to get the unread count for multiple objects in one go
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Comments/ICommentsManager.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php index b179b8a7464..c34358ddf93 100644 --- a/lib/public/Comments/ICommentsManager.php +++ b/lib/public/Comments/ICommentsManager.php @@ -181,6 +181,17 @@ interface ICommentsManager { public function getNumberOfCommentsForObject($objectType, $objectId, \DateTime $notOlderThan = null, $verb = ''); /** + * @param string $objectType the object type, e.g. 'files' + * @param string[] $objectIds the id of the object + * @param IUser $user + * @param string $verb Limit the verb of the comment - Added in 14.0.0 + * @return array Map with object id => # of unread comments + * @psalm-return array<string, int> + * @since 21.0.0 + */ + public function getNumberOfUnreadCommentsForObjects(string $objectType, array $objectIds, IUser $user, $verb = ''): array; + + /** * @param string $objectType * @param string $objectId * @param int $lastRead |