Deleting a file will now delete its downloaded thumbnail as well

Thumbnails will now have their permissions auto updated to align themselves with the other downloaded files
This commit is contained in:
Isaac Grynsztein
2020-06-30 22:38:01 -04:00
parent efdc471ccf
commit 5537852134
4 changed files with 63 additions and 6 deletions

View File

@@ -23,6 +23,8 @@ function registerFileDB(file_path, type, multiUserMode = null, sub = null) {
return false;
}
utils.fixVideoMetadataPerms(file_id, type, multiUserMode && multiUserMode.file_path);
// add additional info
file_object['uid'] = uuid();
file_object['registered'] = Date.now();