diff options
author | Louis Chemineau <louis@chmn.me> | 2024-04-08 13:38:15 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-04-09 10:34:23 +0200 |
commit | a07456c413161599b61ce7050929c179b0e44ca8 (patch) | |
tree | 9008d8eaa8dcf4bd3bcaaf76a3af9dea6a5e2eab /apps/files | |
parent | f89dabb828e782af51992633c9fd57b593a2d5cb (diff) | |
download | nextcloud-server-a07456c413161599b61ce7050929c179b0e44ca8.tar.gz nextcloud-server-a07456c413161599b61ce7050929c179b0e44ca8.zip |
fix(files): Call davGetFavoritesReport after the registration of propfind properties
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files')
-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 |