diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-02-03 18:44:14 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-02-03 21:06:55 +0100 |
commit | bbefe1ed64c0b4a9b77dc8d9b06b9f56c6b7f6e8 (patch) | |
tree | f304cf2e608a05fdc50f7366046b64e71328155e /apps/comments/js/commentmodel.js | |
parent | da0462015507053c4424f62c32a4a182301fae22 (diff) | |
download | nextcloud-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.js | 13 |
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') + }; } }); |