diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-21 09:18:51 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-21 09:18:51 +0200 |
commit | d462439a6311dce60b8a89583af054f2ff120fac (patch) | |
tree | 508192a1117af5eaba6d264625167538b57372f2 /lib/public/Comments | |
parent | 89651c5233e4e5e71213f7c05c1d94e23937e171 (diff) | |
download | nextcloud-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.php | 17 |
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 |