From bb3ea8ddafae2ce6353a930048ca4d5cd3f05298 Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Wed, 17 Jun 2020 00:14:24 -0300 Subject: [PATCH] Merge user list of response --- js/script.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.");