diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-07-26 11:45:38 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-07-26 11:45:38 +0200 |
commit | 0182a503a6876a37493c29055a21cc22e1164404 (patch) | |
tree | bdbad70cb1e4495ecee438be8836705df2c49291 /apps/files_trashbin/lib/hooks.php | |
parent | a00cff7c0543a8860b839a0bf345478e99bc6c18 (diff) | |
download | nextcloud-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.php | 4 |
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()); + } } |