Merge pull request #524 from EdouardVanbelle/fix/cascading-deletion-and-file-life-cycle

fix(fileLifeCycle): add missing on_file_deleted() with cascading deletion
This commit is contained in:
Dionisio Pozo
2026-06-26 12:35:25 +02:00
committed by GitHub
6 changed files with 317 additions and 3 deletions
+4
View File
@@ -526,6 +526,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