diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-09-07 13:56:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-07 13:56:14 +0200 |
commit | fb28ba1b64cf590dd432cf82c20fbadcd2b05f0f (patch) | |
tree | 586dc33d3f31543d9d78b4b1aa6a1e53db7ef10d /apps | |
parent | 6af3dc8617a4753aa15131b336ee0428455d8e1d (diff) | |
parent | e3dcea65af5337c82adf421f1076673babfa48eb (diff) | |
download | nextcloud-server-fb28ba1b64cf590dd432cf82c20fbadcd2b05f0f.tar.gz nextcloud-server-fb28ba1b64cf590dd432cf82c20fbadcd2b05f0f.zip |
Merge pull request #47806 from nextcloud/chore/cleanup-public-share
chore(files_sharing): Do not use files source files but directly the library
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/files_views/publicFileShare.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_sharing/src/files_views/publicFileShare.ts b/apps/files_sharing/src/files_views/publicFileShare.ts index b2b9de9ea5f..8da6030a47b 100644 --- a/apps/files_sharing/src/files_views/publicFileShare.ts +++ b/apps/files_sharing/src/files_views/publicFileShare.ts @@ -3,12 +3,11 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ import type { FileStat, ResponseDataDetailed } from 'webdav' -import { Folder, Permission, View, davGetDefaultPropfind, davRemoteURL, davRootPath, getNavigation } from '@nextcloud/files' +import { Folder, Permission, View, davGetDefaultPropfind, davRemoteURL, davResultToNode, davRootPath, getNavigation } from '@nextcloud/files' import { translate as t } from '@nextcloud/l10n' import { CancelablePromise } from 'cancelable-promise' import LinkSvg from '@mdi/svg/svg/link.svg?raw' -import { resultToNode } from '../../../files/src/services/Files' import { client } from '../../../files/src/services/WebdavClient' import logger from '../services/logger' @@ -40,7 +39,7 @@ export default () => { resolve({ // We only have one file as the content - contents: [resultToNode(node.data)], + contents: [davResultToNode(node.data)], // Fake a readonly folder as root folder: new Folder({ id: 0, |