diff --git a/src/views/FaceContent.vue b/src/views/FaceContent.vue index 29ce5182e..f76574110 100644 --- a/src/views/FaceContent.vue +++ b/src/views/FaceContent.vue @@ -294,12 +294,8 @@ export default { openViewer(fileId) { const file = this.files[fileId] OCA.Viewer.open({ - // remove /username/files/ from the start path: '/' + file.filename.split('/').slice(3).join('/'), - list: this.faceFileIds.map(fileId => ({ - ...this.files[fileId], - basename: this.files[fileId].basename.split('-').slice(1).join('-'), - })).filter(file => !file.sectionHeader), + list: this.faceFileIds.map(fileId => ({ ...this.files[fileId], filename: '/' + this.files[fileId].filename.split('/').slice(3).join('/') })), loadMore: file.loadMore ? async () => await file.loadMore(true) : () => [], canLoop: file.canLoop, }) diff --git a/src/views/UnassignedFaces.vue b/src/views/UnassignedFaces.vue index 0d197c868..e558b618a 100644 --- a/src/views/UnassignedFaces.vue +++ b/src/views/UnassignedFaces.vue @@ -182,12 +182,8 @@ export default { openViewer(fileId) { const file = this.files[fileId] OCA.Viewer.open({ - // remove /username/files/ from the start path: '/' + file.filename.split('/').slice(3).join('/'), - list: this.faceFileIds.map(fileId => ({ - ...this.files[fileId], - basename: this.files[fileId].basename.split('-').slice(1).join('-'), - })).filter(file => !file.sectionHeader), + list: this.faceFileIds.map(fileId => ({ ...this.files[fileId], filename: '/' + this.files[fileId].filename.split('/').slice(3).join('/') })), loadMore: file.loadMore ? async () => await file.loadMore(true) : () => [], canLoop: file.canLoop, })