summaryrefslogtreecommitdiffstats
path: root/lib/public/Comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-10-21 09:18:51 +0200
committerJoas Schilling <coding@schilljs.com>2020-10-21 09:18:51 +0200
commitd462439a6311dce60b8a89583af054f2ff120fac (patch)
tree508192a1117af5eaba6d264625167538b57372f2 /lib/public/Comments
parent89651c5233e4e5e71213f7c05c1d94e23937e171 (diff)
downloadnextcloud-server-d462439a6311dce60b8a89583af054f2ff120fac.tar.gz
nextcloud-server-d462439a6311dce60b8a89583af054f2ff120fac.zip
Get the last comment date for a list of actors (to allow sorting mention suggestions e.g.)
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Comments')
-rw-r--r--lib/public/Comments/ICommentsManager.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/public/Comments/ICommentsManager.php b/lib/public/Comments/ICommentsManager.php
index cfdf3d7fdb7..60f925afa34 100644
--- a/lib/public/Comments/ICommentsManager.php
+++ b/lib/public/Comments/ICommentsManager.php
@@ -200,6 +200,23 @@ interface ICommentsManager {
public function getLastCommentBeforeDate(string $objectType, string $objectId, \DateTime $beforeDate, string $verb = ''): int;
/**
+ * @param string $objectType
+ * @param string $objectId
+ * @param string $verb
+ * @param string $actorType
+ * @param string[] $actors
+ * @return array
+ * @since 21.0.0
+ */
+ public function getLastCommentDateByActor(
+ string $objectType,
+ string $objectId,
+ string $verb,
+ string $actorType,
+ array $actors
+ ): array;
+
+ /**
* Get the number of unread comments for all files in a folder
*
* @param int $folderId