Skip to content

Commit

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

Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr authored and backportbot-nextcloud[bot] committed Jan 24, 2023
1 parent ea2c43e commit 30853fa
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 @@ -286,7 +286,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 30853fa

Please sign in to comment.