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

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorraimund-schluessler <raimund.schluessler@googlemail.com>2014-07-21 23:18:39 +0400
committerraimund-schluessler <raimund.schluessler@googlemail.com>2014-07-21 23:18:39 +0400
commit471c86fed24eec2dbe3544236a7676ed7619c8e7 (patch)
tree8fbeefbb6b95ebc68b281ca7e9b2d8f5115f82cc /lib
parenta1c8892afaf450c1b01a47e52de25330306bcce7 (diff)
Use displayname instead of userID
Diffstat (limited to 'lib')
-rw-r--r--lib/controller/taskscontroller.php1
-rw-r--r--lib/helper.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/controller/taskscontroller.php b/lib/controller/taskscontroller.php
index 04448d26..e18f7811 100644
--- a/lib/controller/taskscontroller.php
+++ b/lib/controller/taskscontroller.php
@@ -512,6 +512,7 @@ class TasksController extends Controller {
'taskID' => $taskId,
'id' => $commentId,
'tmpID' => $this->params('tmpID'),
+ 'name' => \OCP\USER::getDisplayName(),
'userID' => $userId,
'comment' => $comment,
'time' => $now->format('Ymd\THis')
diff --git a/lib/helper.php b/lib/helper.php
index ca7c8bcb..94ab287a 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -179,6 +179,7 @@ Class helper {
$comments_parsed[] = array(
'id' => (int)$com['ID']->value,
'userID' => $com['USERID']->value,
+ 'name' => \OCP\USER::getDisplayName($com['USERID']->value),
'comment' => $com->value,
'time' => $time
);