summaryrefslogtreecommitdiff
path: root/app/Api/Comment.php
diff options
context:
space:
mode:
authorEskiso <eSkiSo@users.noreply.github.com>2015-12-17 09:35:18 +0000
committerEskiso <eSkiSo@users.noreply.github.com>2015-12-17 09:35:18 +0000
commitb3dbdca609700a80be6f31b894a7d8e479ad16cb (patch)
tree40e6e8c840ae9574e062d0e20f100b45372fe705 /app/Api/Comment.php
parent9758a61e0a96dadde91077e2a76f0a93a4767a13 (diff)
Add reference to the createComment parameters
I've only seen the reference column being used by integrations (gitbucket,etc), would be nice that from the API we could also use that column for other references.
Diffstat (limited to 'app/Api/Comment.php')
-rw-r--r--app/Api/Comment.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Api/Comment.php b/app/Api/Comment.php
index 26b632e9..4c4027c0 100644
--- a/app/Api/Comment.php
+++ b/app/Api/Comment.php
@@ -25,12 +25,13 @@ class Comment extends \Kanboard\Core\Base
return $this->comment->remove($comment_id);
}
- public function createComment($task_id, $user_id, $content)
+ public function createComment($task_id, $user_id, $content, $reference = '')
{
$values = array(
'task_id' => $task_id,
'user_id' => $user_id,
'comment' => $content,
+ 'reference' => $reference,
);
list($valid, ) = $this->comment->validateCreation($values);