diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2023-07-28 14:52:30 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2023-08-02 09:57:27 +0200 |
commit | 87b1719c88240d7ae230e5e6ad30c47e100701bd (patch) | |
tree | a328054f57ff87500594da226a85ed2cad106e0e /apps/files_sharing/src/services | |
parent | 6ec35e3799974afdfa04fe43585f613534465610 (diff) | |
download | nextcloud-server-87b1719c88240d7ae230e5e6ad30c47e100701bd.tar.gz nextcloud-server-87b1719c88240d7ae230e5e6ad30c47e100701bd.zip |
feat(files): migrate recent view
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src/services')
-rw-r--r-- | apps/files_sharing/src/services/SharingService.spec.ts | 1 | ||||
-rw-r--r-- | apps/files_sharing/src/services/SharingService.ts | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/apps/files_sharing/src/services/SharingService.spec.ts b/apps/files_sharing/src/services/SharingService.spec.ts index a1de907721a..54e2355b082 100644 --- a/apps/files_sharing/src/services/SharingService.spec.ts +++ b/apps/files_sharing/src/services/SharingService.spec.ts @@ -313,7 +313,6 @@ describe('SharingService share to Node mapping', () => { expect(file.root).toBe('/files/test') expect(file.attributes).toBeInstanceOf(Object) expect(file.attributes['has-preview']).toBe(true) - expect(file.attributes.previewUrl).toBe('/index.php/core/preview?fileId=530936&x=32&y=32&forceIcon=0') expect(file.attributes.favorite).toBe(0) }) diff --git a/apps/files_sharing/src/services/SharingService.ts b/apps/files_sharing/src/services/SharingService.ts index dc167475094..5f288ce7fc5 100644 --- a/apps/files_sharing/src/services/SharingService.ts +++ b/apps/files_sharing/src/services/SharingService.ts @@ -53,7 +53,6 @@ const ocsEntryToNode = function(ocsEntry: any): Folder | File | null { const Node = isFolder ? Folder : File const fileid = ocsEntry.file_source - const previewUrl = hasPreview ? generateUrl('/core/preview?fileId={fileid}&x=32&y=32&forceIcon=0', { fileid }) : undefined // Generate path and strip double slashes const path = ocsEntry?.path || ocsEntry.file_target @@ -76,7 +75,6 @@ const ocsEntryToNode = function(ocsEntry: any): Folder | File | null { root: rootPath, attributes: { ...ocsEntry, - previewUrl, 'has-preview': hasPreview, favorite: ocsEntry?.tags?.includes(window.OC.TAG_FAVORITE) ? 1 : 0, }, |