diff options
author | Louis <louis@chmn.me> | 2024-04-09 13:58:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 13:58:33 +0200 |
commit | 16c07f022fe17f7c7ad374886c2658fbf6dace05 (patch) | |
tree | 5e4cbbfdcc00c0eeec4020d27746222c86ea79f7 /apps | |
parent | fe643bb4730118981a2a3d263c0997c41a93f39b (diff) | |
parent | a07456c413161599b61ce7050929c179b0e44ca8 (diff) | |
download | nextcloud-server-16c07f022fe17f7c7ad374886c2658fbf6dace05.tar.gz nextcloud-server-16c07f022fe17f7c7ad374886c2658fbf6dace05.zip |
Merge pull request #44734 from nextcloud/backport/44714/stable28
[stable28] Call davGetFavoritesReport after the registration of propfind properties
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/services/Favorites.ts | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/apps/files/src/services/Favorites.ts b/apps/files/src/services/Favorites.ts index 800feb2c80a..83577f9a75e 100644 --- a/apps/files/src/services/Favorites.ts +++ b/apps/files/src/services/Favorites.ts @@ -22,25 +22,16 @@ import type { ContentsWithRoot } from '@nextcloud/files' import type { FileStat, ResponseDataDetailed } from 'webdav' -import { Folder, getDavNameSpaces, getDavProperties, davGetDefaultPropfind } from '@nextcloud/files' +import { Folder, davGetDefaultPropfind, davGetFavoritesReport } from '@nextcloud/files' import { getClient } from './WebdavClient' import { resultToNode } from './Files' const client = getClient() -const reportPayload = `<?xml version="1.0"?> -<oc:filter-files ${getDavNameSpaces()}> - <d:prop> - ${getDavProperties()} - </d:prop> - <oc:filter-rules> - <oc:favorite>1</oc:favorite> - </oc:filter-rules> -</oc:filter-files>` - export const getContents = async (path = '/'): Promise<ContentsWithRoot> => { const propfindPayload = davGetDefaultPropfind() + const reportPayload = davGetFavoritesReport() // Get root folder let rootResponse |