aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/hooks.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin/lib/hooks.php')
-rw-r--r--apps/files_trashbin/lib/hooks.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/hooks.php b/apps/files_trashbin/lib/hooks.php
index f1df1d7ec77..b2c6bc1df50 100644
--- a/apps/files_trashbin/lib/hooks.php
+++ b/apps/files_trashbin/lib/hooks.php
@@ -56,4 +56,8 @@ class Hooks {
Trashbin::deleteUser($uid);
}
}
+
+ public static function post_write_hook($params) {
+ Trashbin::resizeTrash(\OCP\User::getUser());
+ }
}