From 6c6456b6c9a1a0b76b6725b597f14fa6f33ed0f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 8 Apr 2021 03:02:42 +0000 Subject: [PATCH 1/2] Bump @nextcloud/router from 1.2.0 to 2.0.0 Bumps [@nextcloud/router](https://github.com/nextcloud/nextcloud-router) from 1.2.0 to 2.0.0. - [Release notes](https://github.com/nextcloud/nextcloud-router/releases) - [Changelog](https://github.com/nextcloud/nextcloud-router/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/nextcloud-router/compare/v1.2.0...v2.0.0) Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index f02a7c8078..fbeb980c4c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7303,9 +7303,9 @@ } }, "@nextcloud/router": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@nextcloud/router/-/router-1.2.0.tgz", - "integrity": "sha512-kn9QsL9LuhkIMaSSgdiqRL3SZ6PatuAjXUiyq343BbSnI99Oc5eJH8kU6cT2AHije7wKy/tK8Xe3VQuVO32SZQ==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@nextcloud/router/-/router-2.0.0.tgz", + "integrity": "sha512-GyHYNYrYAZRBGD5VxRggcbahdJ/zCkXb8+ERVfuaosT+nHMjJSmenTD6Uyct41qGm0p3Az4xRCXGyZGJM0NEUQ==", "requires": { "core-js": "^3.6.4" } diff --git a/package.json b/package.json index 8a49c7ec09..5cee66f806 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "@nextcloud/dialogs": "^3.0.0", "@nextcloud/event-bus": "^1.1.4", "@nextcloud/l10n": "^1.2.3", - "@nextcloud/router": "^1.0.2", + "@nextcloud/router": "^2.0.0", "core-js": "^3.6.5", "debounce": "1.2.1", "emoji-mart-vue-fast": "^7.0.7", From 8d3f53e7894102504f8f23553f8455149fdb8e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Sun, 9 May 2021 22:00:16 +0200 Subject: [PATCH 2/2] Adjust userstatus query to new nextcloud router MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Raimund Schlüßler --- src/mixins/userStatus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixins/userStatus.js b/src/mixins/userStatus.js index b91cc6b00f..22cff80600 100644 --- a/src/mixins/userStatus.js +++ b/src/mixins/userStatus.js @@ -54,7 +54,7 @@ export default { } try { - const { data } = await axios.get(generateOcsUrl('apps/user_status/api/v1', 2) + `statuses/${encodeURIComponent(userId)}`) + const { data } = await axios.get(generateOcsUrl('apps/user_status/api/v1/statuses/{userId}', { userId })) const { status, message,