summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/js/sharedfilelist.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index 7912944ac18..84a628345dd 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -191,14 +191,18 @@
// convert share data to file data
.map(function(share) {
var file = {
- shareOwner: share.owner + '@' + share.remote,
- name: share.name
+ shareOwner: share.owner + '@' + share.remote.replace(/.*?:\/\//g, ""),
+ name: OC.basename(share.mountpoint),
+ mtime: share.mtime,
+ mimetype: share.mimetype,
+ type: share.type,
+ id: share.file_id,
+ path: OC.dirname(share.mountpoint)
};
file.shares = [{
id: share.id,
- type: OC.Share.SHARE_TYPE_REMOTE,
- target: share.mountpoint
+ type: OC.Share.SHARE_TYPE_REMOTE
}];
return file;
})