aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-06-26 10:11:46 +0200
committerJoas Schilling <coding@schilljs.com>2019-06-26 10:14:24 +0200
commitd2c8a11c07f27816298cc1e4032f2b66333fa6d2 (patch)
tree347738fe39ceebc8f43874cb96d76e51f513760b /lib/public/Comments
parentbc276cdd83aeb40e70ccca4573b4318ca7dceb81 (diff)
downloadnextcloud-server-d2c8a11c07f27816298cc1e4032f2b66333fa6d2.tar.gz
nextcloud-server-d2c8a11c07f27816298cc1e4032f2b66333fa6d2.zip
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