aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/hooks.php
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-07-26 11:45:38 +0200
committerBjörn Schießle <schiessle@owncloud.com>2013-07-26 11:45:38 +0200
commit0182a503a6876a37493c29055a21cc22e1164404 (patch)
treebdbad70cb1e4495ecee438be8836705df2c49291 /apps/files_trashbin/lib/hooks.php
parenta00cff7c0543a8860b839a0bf345478e99bc6c18 (diff)
downloadnextcloud-server-0182a503a6876a37493c29055a21cc22e1164404.tar.gz
nextcloud-server-0182a503a6876a37493c29055a21cc22e1164404.zip
expire trash bin if trash bin exceeds max size after a new file was added to ownCloud
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());
+ }
}