Skip to content

Commit

Permalink
fix: undefined filename in livephoto
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Aug 13, 2024
1 parent ca91f53 commit 688f9ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/fileUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ function getDavPath({ filename, source = '' }: { filename: string, source?: stri
// https://github.com/nextcloud/server/issues/19700
const prefixUser = davRootPath

if (!filename) {
return null
}

// If we have a source but we're not a dav resource, return null
if (source && !source.includes(prefixUser)) {
return null
Expand Down

0 comments on commit 688f9ba

Please sign in to comment.