diff options
author | Joas Schilling <coding@schilljs.com> | 2021-11-26 12:29:44 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-11-26 12:29:44 +0100 |
commit | 2166cfde9ec1296bbdcf7d3a6cee83d2b52be853 (patch) | |
tree | bc6f7500dfb63ec961c43c6022406296eed55e7e /lib/public/Comments | |
parent | aee3bb42aeb716ff6c60401cd60ec7d6d7a36bec (diff) | |
download | nextcloud-server-2166cfde9ec1296bbdcf7d3a6cee83d2b52be853.tar.gz nextcloud-server-2166cfde9ec1296bbdcf7d3a6cee83d2b52be853.zip |
Allow to count comments with multiple verbs
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Comments')
-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 64bb98db478..9aacf028b4e 100644 --- a/lib/public/Comments/ICommentsManager.php +++ b/lib/public/Comments/ICommentsManager.php @@ -201,6 +201,17 @@ interface ICommentsManager { */ public function getNumberOfCommentsForObjectSinceComment(string $objectType, string $objectId, int $lastRead, string $verb = ''): int; + + /** + * @param string $objectType + * @param string $objectId + * @param int $lastRead + * @param string[] $verbs + * @return int + * @since 24.0.0 + */ + public function getNumberOfCommentsWithVerbsForObjectSinceComment(string $objectType, string $objectId, int $lastRead, array $verbs): int; + /** * @param string $objectType * @param string $objectId |