Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-06-26 11:11:46 +0300
committerJoas Schilling <coding@schilljs.com>2019-06-26 11:14:24 +0300
commitd2c8a11c07f27816298cc1e4032f2b66333fa6d2 (patch)
tree347738fe39ceebc8f43874cb96d76e51f513760b /lib/public/Comments
parentbc276cdd83aeb40e70ccca4573b4318ca7dceb81 (diff)
Allow apps to store longer messages in the comments API
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Comments')
-rw-r--r--lib/public/Comments/IComment.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/Comments/IComment.php b/lib/public/Comments/IComment.php
index e364d42fe87..c7c846bbe9d 100644
--- a/lib/public/Comments/IComment.php
+++ b/lib/public/Comments/IComment.php
@@ -127,11 +127,12 @@ interface IComment {
* MessageTooLongException shall be thrown.
*
* @param string $message
+ * @param int $maxLength
* @return IComment
* @throws MessageTooLongException
- * @since 9.0.0
+ * @since 9.0.0 - $maxLength added in 16.0.2
*/
- public function setMessage($message);
+ public function setMessage($message, $maxLength = self::MAX_MESSAGE_LENGTH);
/**
* returns an array containing mentions that are included in the comment