summaryrefslogtreecommitdiffstats
path: root/apps/files/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-04-09 09:59:30 +0200
committernpmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>2021-05-26 07:14:57 +0000
commitc2c3856fab5c2daa01573e07ad2ce74b548ee034 (patch)
treed432cbee23b8c0dae15cc0f32e91042364ec35e0 /apps/files/src
parent98cbf8aca35b1687b66f29e61693cf0734943e97 (diff)
downloadnextcloud-server-c2c3856fab5c2daa01573e07ad2ce74b548ee034.tar.gz
nextcloud-server-c2c3856fab5c2daa01573e07ad2ce74b548ee034.zip
Move remnants of ocs api requests to v2 endpoint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files/src')
-rw-r--r--apps/files/src/components/TransferOwnershipDialogue.vue6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/files/src/components/TransferOwnershipDialogue.vue b/apps/files/src/components/TransferOwnershipDialogue.vue
index 7bc27e88ecf..f0025d69ee1 100644
--- a/apps/files/src/components/TransferOwnershipDialogue.vue
+++ b/apps/files/src/components/TransferOwnershipDialogue.vue
@@ -162,7 +162,7 @@ export default {
this.loadingUsers = true
try {
- const response = await axios.get(generateOcsUrl('apps/files_sharing/api/v1') + 'sharees', {
+ const response = await axios.get(generateOcsUrl('apps/files_sharing/api/v1', 2) + 'sharees', {
params: {
format: 'json',
itemType: 'file',
@@ -172,10 +172,6 @@ export default {
},
})
- if (response.data.ocs.meta.statuscode !== 100) {
- logger.error('Error fetching suggestions', { response })
- }
-
this.userSuggestions = {}
response.data.ocs.data.exact.users.concat(response.data.ocs.data.users).forEach(user => {
Vue.set(this.userSuggestions, user.value.shareWith, {