Fix issues with inconsistent path formats for owned files vs shared files

This commit is contained in:
Nariman Jelveh
2024-06-15 22:39:47 -04:00
committed by Eric Dubé
parent f2c6e01296
commit ea84c2f26d
5 changed files with 50 additions and 14 deletions
+3 -3
View File
@@ -662,7 +662,7 @@ async function UIWindow(options) {
// change path of each item to preserve privacy
for(let i=0; i<selected_files.length; i++)
selected_files[i].path = `~/` + selected_files[i].path.split('/').slice(2).join('/');
selected_files[i].path = privacy_aware_path(selected_files[i].path)
}
const ifram_msg_uid = $(el_window).attr('data-iframe_msg_uid');
@@ -739,7 +739,7 @@ async function UIWindow(options) {
// change path of each item to preserve privacy
for(let i=0; i<selected_dirs.length; i++)
selected_dirs[i].path = `~/` + selected_dirs[i].path.split('/').slice(2).join('/');
selected_dirs[i].path = privacy_aware_path(selected_dirs[i].path)
}
const ifram_msg_uid = $(el_window).attr('data-iframe_msg_uid');
@@ -1191,7 +1191,7 @@ async function UIWindow(options) {
writeURL: item.write_url,
metadataURL: item.metadata_url,
isDirectory: item.fsentry_is_dir,
path: `~/` + item.path.split('/').slice(2).join('/'),
path: privacy_aware_path(item.path),
uid: item.uid,
})
}