aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/js/commentmodel.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-02-03 18:44:14 +0100
committerVincent Petry <pvince81@owncloud.com>2016-02-03 21:06:55 +0100
commitbbefe1ed64c0b4a9b77dc8d9b06b9f56c6b7f6e8 (patch)
treef304cf2e608a05fdc50f7366046b64e71328155e /apps/comments/js/commentmodel.js
parentda0462015507053c4424f62c32a4a182301fae22 (diff)
downloadnextcloud-server-bbefe1ed64c0b4a9b77dc8d9b06b9f56c6b7f6e8.tar.gz
nextcloud-server-bbefe1ed64c0b4a9b77dc8d9b06b9f56c6b7f6e8.zip
Comment owner can now edit or delete
Diffstat (limited to 'apps/comments/js/commentmodel.js')
-rw-r--r--apps/comments/js/commentmodel.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/comments/js/commentmodel.js b/apps/comments/js/commentmodel.js
index ba04fd61de3..89492707b61 100644
--- a/apps/comments/js/commentmodel.js
+++ b/apps/comments/js/commentmodel.js
@@ -39,8 +39,17 @@
},
parse: function(data) {
- data.isUnread = (data.isUnread === 'true');
- return data;
+ return {
+ id: data.id,
+ message: data.message,
+ actorType: data.actorType,
+ actorId: data.actorId,
+ actorDisplayName: data.actorDisplayName,
+ creationDateTime: data.creationDateTime,
+ objectType: data.objectType,
+ objectId: data.objectId,
+ isUnread: (data.isUnread === 'true')
+ };
}
});