mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-12-01 15:47:17 +01:00
Merge user list of response
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user