Skip to content

Commit

Permalink
fix(FaceContent): Fix viewer path
Browse files Browse the repository at this point in the history
fixes nextcloud#1594

Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr authored and rkben committed Mar 3, 2023
1 parent d148d37 commit e101ce9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/FaceContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ export default {
openViewer(fileId) {
const file = this.files[fileId]
OCA.Viewer.open({
path: file.filename,
// 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('-'),
Expand Down

0 comments on commit e101ce9

Please sign in to comment.