diff --git a/js/script.js b/js/script.js index 709b16a..ee2de34 100644 --- a/js/script.js +++ b/js/script.js @@ -164,12 +164,16 @@ Notes.prototype = { var self = this; $.get(OC.linkToOCS('apps/files_sharing/api/v1/', 1) + 'sharees', { format: 'json', - itemType: '1' + perPage: 50, + itemType: 1 }).done(function (shares) { var users = []; $.each(shares.ocs.data.exact.users, function(index, user) { users.push(user.value.shareWith); }); + $.each(shares.ocs.data.users, function(index, user) { + users.push(user.value.shareWith); + }); self._usersSharing = users; }).fail(function () { console.error("Could not get users to share.");