fix(fileLifeCycle): add missing on_file_deleted with cascading del

on_file_deleted() was missing on folder deletion or on cascading deletion
This commit is contained in:
Edouard Vanbelle
2026-06-25 22:57:31 +02:00
parent 11e34762e3
commit fefba83cfc
6 changed files with 317 additions and 3 deletions
+4
View File
@@ -523,6 +523,10 @@ impl AppServiceFactory {
let folder_service = Arc::new(FolderService::new(
repos.folder_repository.clone(),
authz.clone(),
// Same dispatcher TrashService uses, so the cascade hook in
// `delete_folder_with_perms` fans out to the same handlers
// (thumbnails, metadata, …) as a single-file delete.
core.file_lifecycle.clone(),
));
// Built before the upload/management services so the plugin lifecycle