mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #47806 from nextcloud/chore/cleanup-public-share
chore(files_sharing): Do not use files source files but directly the library
This commit is contained in:
commit
fb28ba1b64
3 changed files with 5 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
4
dist/files_sharing-init-public.js
vendored
4
dist/files_sharing-init-public.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-init-public.js.map
vendored
2
dist/files_sharing-init-public.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue